Give sandbox checks a writable compilation cache
This commit is contained in:
@@ -141,12 +141,14 @@
|
||||
inherit cargoArtifacts;
|
||||
cargoExtraArgs = "--workspace --lib --test harness --test p1 --test durable --test 'cred*' --test layers --test regressions --test streams --test wasi";
|
||||
preCheck = ''
|
||||
export SAUSAGE_CACHE="$TMPDIR/sausage-cache"
|
||||
mkdir -p target/userland
|
||||
ln -s ${userland} target/userland/bundle
|
||||
'';
|
||||
doInstallCargoArtifacts = false;
|
||||
});
|
||||
checks.shell = pkgs.runCommand "sausage-shell" { } ''
|
||||
export SAUSAGE_CACHE="$TMPDIR/sausage-cache"
|
||||
${sausage}/bin/sausage sh "$TMPDIR/world" -c \
|
||||
'ls /bin | wc -l; echo hi | tr a-z A-Z; git --version; rg --version' > output
|
||||
cat output
|
||||
|
||||
Reference in New Issue
Block a user