Skip to content

Commit bf7832c

Browse files
committed
fix: delegate copying artifacts to nix-fast-build
Copying built artifacts to S3 should be done by nix-fast-build itself while building instead of relying on nix-daemon's post-build hooks and the end of the build.
1 parent b1dff02 commit bf7832c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/nix-build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27-
- runner: blacksmith-32vcpu-ubuntu-2404
27+
- runner: blacksmith-32vcpu-ubuntu-2404
2828
arch: amd64
2929
- runner: blacksmith-32vcpu-ubuntu-2404-arm
3030
arch: arm64
@@ -66,11 +66,12 @@ jobs:
6666
sudo rm -rf /tmp/* 2>/dev/null || true
6767
echo "=== AFTER CLEANUP ==="
6868
df -h
69-
-
69+
-
7070
name: Build psql bundle
7171
run: >
72-
nix run "github:Mic92/nix-fast-build?rev=b1dae483ab7d4139a6297e02b6de9e5d30e43d48"
72+
nix run "github:Mic92/nix-fast-build?rev=b1dae483ab7d4139a6297e02b6de9e5d30e43d48"
7373
-- --skip-cached --no-nom ${{ matrix.runner == 'macos-latest-xlarge' && '--max-jobs 1' || '' }}
74+
-- --copy-to "s3://nix-postgres-artifacts?secret-key=/etc/nix/nix-secret-key"
7475
--flake ".#checks.$(nix eval --raw --impure --expr 'builtins.currentSystem')"
7576
env:
7677
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)