Use a combined cache derivation by default

This commit is contained in:
Stéphan Kochen
2024-02-06 11:00:23 +01:00
parent 67fadc3f61
commit df1c72a4f6
13 changed files with 328 additions and 146 deletions
+7 -2
View File
@@ -79,8 +79,8 @@ jobs:
- name: Test nix-build
run: |
# This delete tests refetching a package with Nix.
nix-store --delete /nix/store/*--yarnpkg-core-npm-*
# This delete tests refetching the cache with Nix.
nix-store --delete /nix/store/*-yarn-cache
nix-build
- name: Test bin
@@ -91,6 +91,7 @@ jobs:
- name: Test isolated builds
run: |
# Matches example in ISOLATED_BUILDS.md
echo 'individualNixPackaging: true' >> .yarnrc.yml
echo 'isolatedNixBuilds: ["sqlite3"]' >> .yarnrc.yml
cat > default.nix << EOF
{ pkgs ? import <nixpkgs> { } }:
@@ -105,4 +106,8 @@ jobs:
EOF
yarn add sqlite3
# This delete tests refetching a package with Nix.
nix-store --delete /nix/store/*--yarnpkg-core-npm-*
nix-build