workflows: cache nix store
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
141f2e3685
commit
90dd57f75d
@ -22,6 +22,17 @@ jobs:
|
|||||||
system-features = nixos-test benchmark big-parallel kvm
|
system-features = nixos-test benchmark big-parallel kvm
|
||||||
enable_kvm: true
|
enable_kvm: true
|
||||||
|
|
||||||
|
- name: Ensure environment
|
||||||
|
run: >-
|
||||||
|
apt-get update && apt-get install -y sqlite3
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
|
||||||
|
- name: Restore Nix store
|
||||||
|
uses: nix-community/cache-nix-action@v5
|
||||||
|
with:
|
||||||
|
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
|
||||||
|
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems
|
nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems
|
||||||
|
Loading…
Reference in New Issue
Block a user