-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.38 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
push:
paths:
- "**/*.odin"
- "**/*.go"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release: dev-2024-11
- name: Report
run: |
odin report ./2021
odin report ./2024
- name: Test
run: |
cd 2021 && task
cd ../2024 && task test
statistics:
needs: test
name: Benchmark and Update Readme
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release: dev-2024-11
- run: cd 2021 && task bench
- run: cd 2022 && go build .
- run: cd 2022 && ./aoc2022 -benchmark
- run: cd 2023 && go build .
- run: cd 2023 && ./aoc2023 -benchmark
- run: cd 2024 && task bench
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update readme statistics