workflow: test new way to cache
This commit is contained in:
parent
1067cba34b
commit
2f7ebbdcaf
2 changed files with 9 additions and 3 deletions
|
@ -73,7 +73,9 @@ jobs:
|
|||
|
||||
- name: cache result
|
||||
run: |
|
||||
nix run github:zhaofengli/attic push main result
|
||||
derivation="$(nix path-info --derivation "${{ matrix.machine }}")"
|
||||
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
||||
nix run github:zhaofengli/attic push main --stdin <<< "$cache"
|
||||
|
||||
- name: prepare tarball to upload
|
||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
||||
|
@ -142,7 +144,9 @@ jobs:
|
|||
|
||||
- name: cache result
|
||||
run: |
|
||||
nix run github:zhaofengli/attic push main result
|
||||
derivation="$(nix path-info --derivation "${{ matrix.home }}")"
|
||||
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
||||
nix run github:zhaofengli/attic push main --stdin <<< "$cache"
|
||||
|
||||
- name: prepare tarball to upload
|
||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
||||
|
|
4
.github/workflows/build-packages.yml
vendored
4
.github/workflows/build-packages.yml
vendored
|
@ -48,7 +48,9 @@ jobs:
|
|||
|
||||
- name: cache result
|
||||
run: |
|
||||
nix run github:zhaofengli/attic push main result
|
||||
derivation="$(nix path-info --derivation "${{ matrix.package }}")"
|
||||
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
||||
nix run github:zhaofengli/attic push main --stdin <<< "$cache"
|
||||
|
||||
- name: prepare tarball to upload
|
||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue