Skip to content

Commit 585aa5b

Browse files
committed
ci build optimization
1 parent 99761d9 commit 585aa5b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1+
on:
2+
push: {}
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
6+
name: Build
17

2-
name: "Build"
3-
on: [pull_request, push]
48
jobs:
59
build:
610
runs-on: ubuntu-latest
711
steps:
812
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
915
- uses: cachix/install-nix-action@v22
1016
with:
1117
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1218
- uses: cachix/cachix-action@v12
1319
with:
1420
name: smk
15-
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
21+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
1622
- name: Build release
1723
run: nix develop --command make all
1824
- name: Archive code coverage results
@@ -25,12 +31,14 @@ jobs:
2531
runs-on: ubuntu-latest
2632
steps:
2733
- uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
2836
- uses: cachix/install-nix-action@v22
2937
with:
3038
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3139
- uses: cachix/cachix-action@v12
3240
with:
3341
name: smk
34-
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
42+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
3543
- name: Build release
3644
run: nix develop --command clang-format --dry-run -Werror -style=file -i src/**.{h,c}

0 commit comments

Comments
 (0)