workflow: try another cache command cause --all is really all

This commit is contained in:
cy 2025-03-28 17:36:51 -04:00
parent 70ed141863
commit a45f4132e5
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts

View file

@ -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^*/')