diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-12-18 23:20:25 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-12-18 23:38:39 +0900 |
| commit | 90dd57f75dc762e369e447fdec264c7c0b17bb6f (patch) | |
| tree | 368bfcebfc146666504466123f7fc4c0b07f4ad3 /.gitea | |
| parent | 141f2e3685f2518731f6b1c89e29622338c6a806 (diff) | |
workflows: cache nix store
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to '.gitea')
| -rw-r--r-- | .gitea/workflows/nix.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitea/workflows/nix.yml b/.gitea/workflows/nix.yml index 3193db4b..36651a50 100644 --- a/.gitea/workflows/nix.yml +++ b/.gitea/workflows/nix.yml @@ -22,6 +22,17 @@ jobs: system-features = nixos-test benchmark big-parallel kvm 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 run: | nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems |
