Implement caching for /nix/store

This commit is contained in:
Tom Foster 2024-04-23 14:17:34 +01:00
parent 3de3aead23
commit ce05d955c3

View file

@ -32,6 +32,14 @@ jobs:
- name: Sync repository - name: Sync repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up `/nix/store` cache
uses: actions/cache@v3
with:
path: /nix/store
key: ${{ runner.os }}-nix-store-${{ hashFiles('flake.lock') }}
restore-keys: |
${{ runner.os }}-nix-store-
- name: Install Nix (with flakes and nix-command enabled) - name: Install Nix (with flakes and nix-command enabled)
uses: cachix/install-nix-action@v26 uses: cachix/install-nix-action@v26
with: with:
@ -65,7 +73,7 @@ jobs:
nix develop --command true nix develop --command true
direnv allow direnv allow
- name: Perform continuous integration - name: Run CI tests
run: | run: |
direnv exec . engage direnv exec . engage