feat: cache nix packages in ci
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 1m20s
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 1m20s
This commit is contained in:
6
.github/workflows/copilot-setup-steps.yml
vendored
6
.github/workflows/copilot-setup-steps.yml
vendored
@@ -35,5 +35,11 @@ jobs:
|
|||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
- name: Restore and save Nix store cache
|
||||||
|
uses: nix-community/cache-nix-action@v7
|
||||||
|
with:
|
||||||
|
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
|
||||||
|
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Install flake dependencies
|
- name: Install flake dependencies
|
||||||
run: nix develop --accept-flake-config -c true
|
run: nix develop --accept-flake-config -c true
|
||||||
|
|||||||
Reference in New Issue
Block a user