Skip to content

Commit

Permalink
Turn cachix back off
Browse files Browse the repository at this point in the history
  • Loading branch information
b- authored Feb 11, 2024
1 parent e9d0a87 commit 9f0c144
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ build_template: &BUILD_TEMPLATE
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_TAG != "" || $CIRRUS_PR != "" || $CIRRUS_BUILD_SOURCE == ""
timeout_in: 120m
install_cachix_script: nix profile install github:nixos/nixpkgs/nixpkgs-unstable#cachix --impure && cachix use $CACHIX_USER
#flake_check_script: nix flake check -j auto --system ${ARCH//arm/aarch}-${CIRRUS_OS} --impure --show-trace --accept-flake-config
flake_check_script: cachix watch-exec $CACHIX_USER -- nix flake check -j auto --system ${ARCH//arm/aarch}-${CIRRUS_OS} --impure --show-trace --accept-flake-config
flake_check_script: nix flake check -j auto --system ${ARCH//arm/aarch}-${CIRRUS_OS} --impure --show-trace --accept-flake-config
#flake_check_script: cachix watch-exec $CACHIX_USER -- nix flake check -j auto --system ${ARCH//arm/aarch}-${CIRRUS_OS} --impure --show-trace --accept-flake-config

build_image_template: &BUILD_IMAGE_TEMPLATE
name: build_image_${TARGET}@${ARCH}-${CIRRUS_OS}_${FORMAT}
Expand All @@ -29,10 +29,11 @@ build_image_template: &BUILD_IMAGE_TEMPLATE
install_cachix_script: nix profile install github:nixos/nixpkgs/nixpkgs-unstable#cachix --impure && cachix use $CACHIX_USER
build_image_script: |
mkdir -p build
cp -LR "$(cachix watch-exec $CACHIX_USER -- nix build ".#nixosConfigurations.${TARGET}@${ARCH//arm/aarch}-${CIRRUS_OS}.config.formats.${FORMAT}" --print-out-paths --show-trace --accept-flake-config)" build/
#cp -LR "$(nix build ".#nixosConfigurations.${TARGET}@${ARCH//arm/aarch}-${CIRRUS_OS}.config.formats.${FORMAT}" --print-out-paths --show-trace --accept-flake-config)" build/
cp -LR "$(nix build ".#nixosConfigurations.${TARGET}@${ARCH//arm/aarch}-${CIRRUS_OS}.config.formats.${FORMAT}" --print-out-paths --show-trace --accept-flake-config)" build/
#cp -LR "$(cachix watch-exec $CACHIX_USER -- nix build ".#nixosConfigurations.${TARGET}@${ARCH//arm/aarch}-${CIRRUS_OS}.config.formats.${FORMAT}" --print-out-paths --show-trace --accept-flake-config)" build/
upload_artifacts_script: |
printenv UPLOAD_SSH_KEY > /tmp/ci-upload.key
chmod 600 /tmp/ci-upload.key
scp -i /tmp/ci-upload.key -oStrictHostKeyChecking=no -oport=222 -oidentitiesonly=true -oPasswordAuthentication=no build/* [email protected]:${DESTDIR}
compress_artifacts_script: |
filepath=$(find -L "build" -type f -name '*.${EXT}' | head -n 1)
Expand Down

0 comments on commit 9f0c144

Please sign in to comment.