File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
actions/nix-install-ephemeral Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 55 description : ' Whether to push build outputs to the Nix binary cache'
66 required : false
77 default : ' true'
8+ restore-nix-store :
9+ description : ' Whether to restore the Nix store from the binary cache before building'
10+ required : false
11+ default : ' false'
12+ restore-cache-name :
13+ description : ' The name to use for the Nix store cache (if restoring)'
14+ required : false
815runs :
916 using : ' composite'
1017 steps :
4451 substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
4552 trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
4653 ${{ inputs.push-to-cache == 'true' && 'post-build-hook = /etc/nix/upload-to-cache.sh' || '' }}
54+ - name : Restore and save Nix store
55+ uses : nix-community/cache-nix-action@v6
56+ with :
57+ primary-key : nix-${{ inputs.restore-cache-name }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
58+ restore-prefixes-first-match : nix-${{ inputs.restore-cache-name }}-${{ runner.os }}-${{ runner.arch }}-
Original file line number Diff line number Diff line change 2525 env :
2626 DEV_AWS_ROLE : ${{ secrets.DEV_AWS_ROLE }}
2727 NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
28+ with :
29+ restore-nix-store : true
30+ restore-cache-name : nix-eval
2831 - id : set-matrix
2932 name : Generate Nix Matrix
3033 run : |
3134 set -Eeu
32- echo matrix="$(nix run .\#github-matrix checks legacyPackages)" >> "$GITHUB_OUTPUT"
35+ echo matrix="$(nix run --accept-flake-config .\#github-matrix checks legacyPackages)" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments