Skip to content

Commit

Permalink
ci: enable caching on flake update branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov committed Sep 4, 2024
1 parent fac4a8c commit 5a3fd21
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
- uses: cachix/cachix-action@v15
with:
name: crane
authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN || '' }}
- if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/automation/flake-update' }}
run: cachix authtoken ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: flake checks
run: nix develop --accept-flake-config --command ./ci/fast-flake-check.sh . ${{ matrix.nixpkgs-override }}
- name: extra tests
Expand Down Expand Up @@ -82,7 +83,8 @@ jobs:
- uses: cachix/cachix-action@v15
with:
name: crane
authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN || '' }}
- if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/automation/flake-update' }}
run: cachix authtoken ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: validate examples
# Nix won't write a lockfile when --override-input is used (which is good because it will
# complain that the lock file is .gitignored), but nix-eval-jobs doesn't, so we'll have to
Expand All @@ -106,7 +108,8 @@ jobs:
- uses: cachix/cachix-action@v15
with:
name: crane
authToken: ${{ github.ref == 'refs/heads/master' && secrets.CACHIX_AUTH_TOKEN || '' }}
- if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/automation/flake-update' }}
run: cachix authtoken ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: validate examples
# Nix won't write a lockfile when --override-input is used (which is good because it will
# complain that the lock file is .gitignored), but nix-eval-jobs doesn't, so we'll have to
Expand Down

0 comments on commit 5a3fd21

Please sign in to comment.