Support isolated builds with a combined cache
This commit is contained in:
@@ -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-*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user