dogfood nixcp everywhere
This commit is contained in:
parent
35638117ab
commit
0db4f4c4ab
2 changed files with 7 additions and 14 deletions
|
@ -76,8 +76,7 @@ jobs:
|
|||
if: '!cancelled()'
|
||||
run: |
|
||||
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"
|
||||
nix profile install git+https://git.cy7.sh/cy/nixcp.git
|
||||
nixcp \
|
||||
nix run git+https://git.cy7.sh/cy/nixcp.git -- \
|
||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||
-u https://nix-community.cachix.org \
|
||||
-u https://nixcache.cy7.sh \
|
||||
|
@ -149,8 +148,7 @@ jobs:
|
|||
if: '!cancelled()'
|
||||
run: |
|
||||
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
||||
nix profile install git+https://git.cy7.sh/cy/nixcp.git
|
||||
nixcp \
|
||||
nix run git+https://git.cy7.sh/cy/nixcp.git -- \
|
||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||
-u https://nix-community.cachix.org \
|
||||
-u https://nixcache.cy7.sh \
|
||||
|
|
15
.github/workflows/build-packages.yml
vendored
15
.github/workflows/build-packages.yml
vendored
|
@ -64,16 +64,11 @@ jobs:
|
|||
# https://stackoverflow.com/a/58859404
|
||||
if: '!cancelled()'
|
||||
run: |
|
||||
derivations=()
|
||||
while IFS=$'\n' read derivation; do
|
||||
derivations+=("$derivation")
|
||||
done < <(nix path-info --derivation "${{ matrix.package }}")
|
||||
|
||||
for derivation in "${derivations[@]}"; do
|
||||
nix copy -j8 \
|
||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||
$(nix-store --query --requisites --include-outputs "$derivation")
|
||||
done
|
||||
nix run git+https://git.cy7.sh/cy/nixcp.git -- \
|
||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||
-u https://nix-community.cachix.org \
|
||||
-u https://nixcache.cy7.sh \
|
||||
"${{ matrix.package }}"
|
||||
|
||||
- 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