don't try to upload PR builds to cachix

This commit is contained in:
Wolfgang Thaller 2022-07-31 22:48:28 +02:00
parent 6e00994e45
commit d4d6fc69a9

View File

@ -96,6 +96,10 @@ jobs:
- publish: CompiledSamples
artifact: Samples ($(TARGET))
- script: |
if [ -z "$CACHIX_AUTH_TOKEN" ]; then
echo "Token for cachix access not available, skipping."
exit
fi
docker start nix -i <<EOF
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
cd src
@ -138,6 +142,10 @@ jobs:
nix-build -A $(TARGET).retro68.samples
displayName: build
- script: |
if [ -z "$CACHIX_AUTH_TOKEN" ]; then
echo "Token for cachix access not available, skipping."
exit
fi
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
nix-build -A $(TARGET).retro68.samples | cachix push autc04