mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 21:49:33 +00:00
don't try to upload PR builds to cachix
This commit is contained in:
parent
6e00994e45
commit
d4d6fc69a9
@ -96,12 +96,16 @@ jobs:
|
|||||||
- publish: CompiledSamples
|
- publish: CompiledSamples
|
||||||
artifact: Samples ($(TARGET))
|
artifact: Samples ($(TARGET))
|
||||||
- script: |
|
- script: |
|
||||||
|
if [ -z "$CACHIX_AUTH_TOKEN" ]; then
|
||||||
|
echo "Token for cachix access not available, skipping."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
docker start nix -i <<EOF
|
docker start nix -i <<EOF
|
||||||
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
|
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
|
||||||
cd src
|
cd src
|
||||||
nix-build -A ${TARGET}.retro68.samples | cachix push autc04
|
nix-build -A ${TARGET}.retro68.samples | cachix push autc04
|
||||||
nix-shell -A ${TARGET} --command exit
|
nix-shell -A ${TARGET} --command exit
|
||||||
nix-store -qR --include-outputs \$(nix-instantiate default.nix -A ${TARGET}) | cachix push autc04
|
nix-store -qR --include-outputs \$(nix-instantiate default.nix -A ${TARGET}) | cachix push autc04
|
||||||
EOF
|
EOF
|
||||||
displayName: Push to Cachix
|
displayName: Push to Cachix
|
||||||
env:
|
env:
|
||||||
@ -138,6 +142,10 @@ jobs:
|
|||||||
nix-build -A $(TARGET).retro68.samples
|
nix-build -A $(TARGET).retro68.samples
|
||||||
displayName: build
|
displayName: build
|
||||||
- script: |
|
- 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
|
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||||
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
|
export CACHIX_AUTH_TOKEN=$CACHIX_AUTH_TOKEN
|
||||||
nix-build -A $(TARGET).retro68.samples | cachix push autc04
|
nix-build -A $(TARGET).retro68.samples | cachix push autc04
|
||||||
|
Loading…
Reference in New Issue
Block a user