mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-18 05:33:04 +00:00
Revert "Another attempt at skipping cachix upload without tokens"
This reverts commit 9e977cfd6eb79e6d8ba42f7aaa5f75909f9ab0a1.
This commit is contained in:
parent
9e977cfd6e
commit
b1dde42211
@ -96,18 +96,16 @@ 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]
|
||||
export CACHIX_AUTH_TOKEN=$(CACHIX_AUTH_TOKEN)
|
||||
cd src
|
||||
nix-build -A ${TARGET}.retro68.samples | cachix push autc04
|
||||
nix-shell -A ${TARGET} --command exit
|
||||
nix-store -qR --include-outputs \$(nix-instantiate default.nix -A ${TARGET}) | cachix push autc04
|
||||
EOF
|
||||
displayName: Push to Cachix
|
||||
condition: ne(variables['CACHIX_AUTH_TOKEN'], '')
|
||||
|
||||
|
||||
- job: NixMac
|
||||
strategy:
|
||||
@ -139,13 +137,11 @@ 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]
|
||||
export CACHIX_AUTH_TOKEN=$(CACHIX_AUTH_TOKEN)
|
||||
nix-build -A $(TARGET).retro68.samples | cachix push autc04
|
||||
nix-shell -A $(TARGET) --command exit
|
||||
nix-store -qR --include-outputs `nix-instantiate default.nix -A $(TARGET)` | cachix push autc04
|
||||
displayName: Push to Cachix
|
||||
condition: ne(variables['CACHIX_AUTH_TOKEN'], '')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user