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 :
18+ - name : Restore and save Nix store
19+ uses : nix-community/cache-nix-action@v6
20+ with :
21+ primary-key : nix-${{ inputs.restore-cache-name }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
22+ restore-prefixes-first-match : nix-${{ inputs.restore-cache-name }}-${{ runner.os }}-${{ runner.arch }}-
1123 - name : aws-creds
1224 uses : aws-actions/configure-aws-credentials@v4
1325 if : ${{ inputs.push-to-cache == 'true' }}
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