workflow: fix
This commit is contained in:
parent
2b5322cb72
commit
9f5c7e98a3
1 changed files with 8 additions and 4 deletions
12
.github/workflows/build-machines-and-homes.yml
vendored
12
.github/workflows/build-machines-and-homes.yml
vendored
|
@ -69,8 +69,14 @@ jobs:
|
||||||
nix profile install github:zhaofengli/attic
|
nix profile install github:zhaofengli/attic
|
||||||
attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN"
|
attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN"
|
||||||
|
|
||||||
|
- name: build and cache
|
||||||
- run: |
|
- run: |
|
||||||
nix build -L .#nixosConfigurations.${{ matrix.machine }}.config.system.build.toplevel
|
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"
|
||||||
|
nix build -L "$package"
|
||||||
|
derivation="$(nix path-info --derivation "$package")"
|
||||||
|
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
||||||
|
attic push main --stdin <<< "$cache"
|
||||||
|
|
||||||
|
|
||||||
- name: cache result
|
- name: cache result
|
||||||
run: |
|
run: |
|
||||||
|
@ -141,12 +147,10 @@ jobs:
|
||||||
nix profile install github:zhaofengli/attic
|
nix profile install github:zhaofengli/attic
|
||||||
attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN"
|
attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN"
|
||||||
|
|
||||||
|
- name: build and cache
|
||||||
- run: |
|
- run: |
|
||||||
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
||||||
nix build -L "$package"
|
nix build -L "$package"
|
||||||
|
|
||||||
- name: cache result
|
|
||||||
run: |
|
|
||||||
derivation="$(nix path-info --derivation "$package")"
|
derivation="$(nix path-info --derivation "$package")"
|
||||||
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
||||||
attic push main --stdin <<< "$cache"
|
attic push main --stdin <<< "$cache"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue