-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.08 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
name: CI
on: push
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Report
run: odin report ./2021
- name: Test
run: cd 2021 && make test
- name: Check
run: odin check ./2021 -vet --strict-style
statistics:
needs: test
name: Benchmark and Update Readme
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: cd 2021 && make bench
- run: cd 2022 && go build .
- run: cd 2022 && ./aoc2022 -benchmark
- run: cd 2023 && go build .
- run: cd 2023 && ./aoc2023 -benchmark
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update readme statistics