Support isolated builds with a combined cache

This commit is contained in:
Stéphan Kochen
2024-02-11 13:27:49 +01:00
parent ab15ad6804
commit 56e3459543
4 changed files with 41 additions and 24 deletions
+7 -1
View File
@@ -91,7 +91,6 @@ 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> { } }:
@@ -107,6 +106,13 @@ jobs:
yarn add sqlite3
nix-build
- name: Test individual packaging
run: |
echo 'individualNixPackaging: true' >> .yarnrc.yml
yarn
# This delete tests refetching a package with Nix.
nix-store --delete /nix/store/*--yarnpkg-core-npm-*