From 67bbd90abc32084c0bce33b7abeba117fae25a77 Mon Sep 17 00:00:00 2001 From: Spencer Heywood Date: Tue, 5 Nov 2024 17:10:06 -0700 Subject: [PATCH] using nix run instead of installing attic --- .github/workflows/linux.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2c1e692..c22599f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -38,19 +38,18 @@ jobs: - name: Build Linux outputs run: | sudo -s /bin/bash -- < /dev/null || nix profile install "github:zhaofengli/attic#attic-client" - attic push nixos ./result + /home/docker/.nix-profile/bin/nix build "github:zhaofengli/attic#attic-client" + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix run nixpkgs#nixos-rebuild -- build --flake .#nixos-desktop-intel - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix run nixpkgs#nixos-rebuild -- build --flake .#nixos-server-intel - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix build .#homeConfigurations.heywoodlh.activationPackage --impure - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix build .#homeConfigurations.heywoodlh-server.activationPackage --impure - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result EOF build-linux-arm64-env: @@ -74,17 +73,16 @@ jobs: - name: Build Linux outputs run: | sudo -s /bin/bash -- < /dev/null || nix profile install "github:zhaofengli/attic#attic-client" - attic push nixos ./result + /home/docker/.nix-profile/bin/nix build "github:zhaofengli/attic#attic-client" + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix run nixpkgs#nixos-rebuild -- build --flake .#nixos-arm64-test - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix run nixpkgs#nixos-rebuild -- build --flake .#nixos-mac-mini - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix build .#homeConfigurations.heywoodlh.activationPackage --impure - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result /home/docker/.nix-profile/bin/nix build .#homeConfigurations.heywoodlh-server.activationPackage --impure - attic push nixos ./result + /home/docker/.nix-profile/bin/nix run "github:zhaofengli/attic#attic-client" -- push nixos ./result EOF