dogfood nixcp

This commit is contained in:
cy 2025-04-14 13:46:03 -04:00
parent 892f42ed2a
commit dbfd590562
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
2 changed files with 17 additions and 11 deletions

View file

@ -73,10 +73,12 @@ jobs:
if: '!cancelled()'
run: |
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"
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&compression=zstd' \
nix run github:cything/nixcp/2025-04-12 -- \
push \
--bucket nixcache \
--signing-key /home/runner/cache-priv-key.pem \
--endpoint https://s3.cy7.sh \
-u https://nix-community.cachix.org \
-u https://nixcache.web.cy7.sh \
$package
build-homes:
@ -142,8 +144,10 @@ jobs:
if: '!cancelled()'
run: |
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
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&compression=zstd' \
nix run github:cything/nixcp/2025-04-12 -- \
push \
--bucket nixcache \
--signing-key /home/runner/cache-priv-key.pem \
--endpoint https://s3.cy7.sh \
-u https://nix-community.cachix.org \
-u https://nixcache.web.cy7.sh \
$package

View file

@ -22,8 +22,8 @@ jobs:
os:
- ubuntu-latest
- ubuntu-24.04-arm
# - macos-latest
# - macos-13
- macos-latest
- macos-13
runs-on: ${{ matrix.os }}
steps:
@ -61,10 +61,12 @@ jobs:
# https://stackoverflow.com/a/58859404
if: '!cancelled()'
run: |
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&compression=zstd' \
nix run github:cything/nixcp/2025-04-12 -- \
push \
--bucket nixcache \
--signing-key /home/runner/cache-priv-key.pem \
--endpoint https://s3.cy7.sh \
-u https://nix-community.cachix.org \
-u https://nixcache.web.cy7.sh \
"${{ matrix.package }}"
- name: prepare tarball to upload