mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 17:06:24 +02:00
Implement caching for /nix/store
This commit is contained in:
parent
3de3aead23
commit
ce05d955c3
1 changed files with 21 additions and 13 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue