Skip to content

Commit c0c093a

Browse files
committed
github-actions: only push to cache for main branch, update actions
1 parent 158d5e6 commit c0c093a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/main.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
update-check:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: cachix/install-nix-action@v20
18-
- run: |
19-
nix run .#update -- check
16+
- uses: actions/checkout@v4
17+
- uses: cachix/install-nix-action@v25
18+
- run: nix build .#update
19+
- run: nix run .#update -- check
2020

2121
build:
2222
strategy:
@@ -27,14 +27,14 @@ jobs:
2727
[aslp, bap-aslp, bap-primus, basil,
2828
alive2, retdec-uq-pac, asl-translator,
2929
gtirb-semantics, ddisasm,
30-
ocamlPackages_pac_4_09.asli]
30+
ocamlPackages_pac_4_09.asli,
31+
retdec5, remill]
3132
runs-on: ubuntu-latest
3233
steps:
33-
- uses: actions/checkout@v3
34-
- uses: cachix/install-nix-action@v20
35-
with: { nix_path: 'nixpkgs=channel:nixpkgs-unstable' }
36-
- uses: cachix/cachix-action@v12
37-
with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' }
34+
- uses: actions/checkout@v4
35+
- uses: cachix/install-nix-action@v25
36+
- uses: cachix/cachix-action@v14
37+
with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}', skipPush: "${{ github.ref != 'refs/heads/main' }}" }
3838

3939
- run: nix build .#${{matrix.pkg}}
4040
- name: Run nix build .#${{matrix.pkg}}.tests

0 commit comments

Comments
 (0)