we want nix in path

This commit is contained in:
Wolfgang Thaller 2023-12-26 23:33:00 +01:00
parent ddfda03281
commit 193610a2e1

View File

@ -99,19 +99,21 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
displayName: Install Nix displayName: Install Nix
- script: | - script: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix profile install --accept-flake-config nixpkgs#cachix nix profile install --accept-flake-config nixpkgs#cachix
cachix use autc04 cachix use autc04
displayName: Setup Cachix displayName: Setup Cachix
- checkout: self - checkout: self
submodules: false submodules: false
- script: | - script: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix develop .#${TARGET} --profile dev-profile -c true nix develop .#${TARGET} --profile dev-profile -c true
nix build .#samples-${TARGET} --out-link=CompiledSamples nix build .#samples-${TARGET} --out-link=CompiledSamples
displayName: Build displayName: Build
- publish: CompiledSamples - publish: CompiledSamples
artifact: Samples ($(TARGET)) artifact: Samples ($(TARGET))
- script: | - script: |
set -e . /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)
cachix push autc04 dev-profile cachix push autc04 dev-profile
cachix push autc04 CompiledSamples cachix push autc04 CompiledSamples
@ -136,19 +138,21 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
displayName: Install Nix displayName: Install Nix
- script: | - script: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix profile install --accept-flake-config nixpkgs#cachix nix profile install --accept-flake-config nixpkgs#cachix
cachix use autc04 cachix use autc04
displayName: Setup Cachix displayName: Setup Cachix
- checkout: self - checkout: self
submodules: false submodules: false
- script: | - script: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix develop .#${TARGET} --profile dev-profile -c true nix develop .#${TARGET} --profile dev-profile -c true
nix build .#samples-${TARGET} --out-link=CompiledSamples nix build .#samples-${TARGET} --out-link=CompiledSamples
displayName: Build displayName: Build
- publish: CompiledSamples - publish: CompiledSamples
artifact: Samples ($(TARGET)) artifact: Samples ($(TARGET))
- script: | - script: |
set -e . /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)
cachix push autc04 dev-profile cachix push autc04 dev-profile
cachix push autc04 CompiledSamples cachix push autc04 CompiledSamples