workflow: try another cache command cause --all is really all
This commit is contained in:
parent
70ed141863
commit
a45f4132e5
1 changed files with 10 additions and 4 deletions
14
.github/workflows/build-machines-and-homes.yml
vendored
14
.github/workflows/build-machines-and-homes.yml
vendored
|
@ -52,6 +52,7 @@ jobs:
|
|||
'git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.92.0' -- \
|
||||
upgrade-nix \
|
||||
--extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
||||
nix --version
|
||||
|
||||
- name: Sync repository
|
||||
uses: actions/checkout@v4
|
||||
|
@ -64,8 +65,10 @@ jobs:
|
|||
- name: cache
|
||||
if: always()
|
||||
run: |
|
||||
nix copy --all --to 's3://nixcache?endpoint=s3.cy7.sh' --verbose
|
||||
nix store sign --store 's3://nixcache?endpoint=s3.cy7.sh' -k /home/runner/cache-priv-key.pem --all
|
||||
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"
|
||||
nix copy -j8 \
|
||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||
$(nix path-info --recursive --derivation "$package" |sed 's/\.drv$/.drv^*/')
|
||||
build-homes:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -102,6 +105,7 @@ jobs:
|
|||
'git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.92.0' -- \
|
||||
upgrade-nix \
|
||||
--extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
||||
nix --version
|
||||
|
||||
- name: Sync repository
|
||||
uses: actions/checkout@v4
|
||||
|
@ -114,5 +118,7 @@ jobs:
|
|||
- name: cache
|
||||
if: always()
|
||||
run: |
|
||||
nix copy --all --to 's3://nixcache?endpoint=s3.cy7.sh' --verbose
|
||||
nix store sign --store 's3://nixcache?endpoint=s3.cy7.sh' -k /home/runner/cache-priv-key.pem --all
|
||||
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
||||
nix copy -j8 \
|
||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||
$(nix path-info --recursive --derivation "$package" |sed 's/\.drv$/.drv^*/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue