From fb416ea81745611cd55d7e4bbb1df88f0fbf91bd Mon Sep 17 00:00:00 2001 From: cy Date: Thu, 13 Mar 2025 13:43:35 -0400 Subject: [PATCH] test workflow --- .../workflows/build-machines-and-homes.yml | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-machines-and-homes.yml b/.github/workflows/build-machines-and-homes.yml index 413b892..7d4e572 100644 --- a/.github/workflows/build-machines-and-homes.yml +++ b/.github/workflows/build-machines-and-homes.yml @@ -3,6 +3,9 @@ on: workflow_dispatch: push: pull_request: +env: + ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }} + jobs: build-machines: strategy: @@ -58,7 +61,17 @@ jobs: purge-primary-key: never # always save the cache save-always: true - - run: nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel + + - name: setup attic + run: | + nix profile install nixpkgs#attic + attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN" + attic use main + + - run: | + nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel + attic push main result + build-homes: strategy: matrix: @@ -109,4 +122,13 @@ jobs: purge-primary-key: never # always save the cache save-always: true - - run: nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage + + - name: setup attic + run: | + nix profile install nixpkgs#attic + attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN" + attic use main + + - run: | + nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage + attic push main result