aoc_2024/.github/workflows/solve.yaml

30 lines
787 B
YAML
Raw Normal View History

2024-12-02 13:06:26 +00:00
name: Solve
on:
push:
branches:
- main
jobs:
example-action:
runs-on: ubuntu-latest
steps:
2024-12-02 13:06:26 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'corretto' # See 'Supported distributions' for available options
java-version: '21'
2024-12-02 13:06:27 +00:00
- uses: https://github.com/fwilhe2/setup-kotlin@main
2024-12-02 13:06:27 +00:00
- name: Solutions
run: |
set -e
for script in $(ls *.kts | sort -r); do
2024-12-02 13:06:27 +00:00
echo "Running $script" | tee -a solutions-output.txt
kotlin $script 2>&1 | tee -a solutions-output.txt
done
2024-12-02 13:06:27 +00:00
- name: Upload Solutions Output
2024-12-02 13:06:27 +00:00
uses: actions/upload-artifact@v3
2024-12-02 13:06:27 +00:00
with:
name: solutions-output
path: solutions-output.txt