Skip to content

Commit 47d739c

Browse files
committed
no bloat
1 parent 5c35dfc commit 47d739c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/nix-github-actions.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,34 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix: ${{ fromJSON(needs.nix-matrix.outputs.matrix) }}
30+
permissions:
31+
contents: write
32+
id-token: write
3033
steps:
3134
- uses: actions/checkout@v4
3235
- uses: wimpysworld/nothing-but-nix@main
36+
with:
37+
hatchet-protocol: 'rampage'
38+
root-safe-haven: '3072' # Reserve 3GB on the / filesystem
39+
mnt-safe-haven: '2048' # Reserve 2GB on the /mnt filesystem
3340
- uses: DeterminateSystems/determinate-nix-action@main
34-
41+
- uses: DeterminateSystems/magic-nix-cache-action@main
3542
- name: Build and Stage
43+
continue-on-error: true
3644
run: |
3745
nix build -L '.#${{ matrix.attr }}' \
3846
--option system-features "nixos-test benchmark big-parallel kvm" \
3947
--option auto-optimise-store true
4048
49+
sync
50+
4151
mkdir -p staging
42-
# Recursively find any build product and follow symlinks
4352
find -L result -type f | while read -r file; do
4453
filename=$(basename "$file")
4554
cp -L "$file" "staging/${{ github.ref_name }}-${{ matrix.system }}-$filename"
4655
done
4756
4857
rm result
49-
nix-store --gc
5058
5159
- name: Upload Temporary Artifact
5260
uses: actions/upload-artifact@v4
@@ -57,6 +65,7 @@ jobs:
5765

5866
release:
5967
needs: nix-build
68+
if: ${{ always() && !cancelled() }} # Always run if an artifact can be used
6069
runs-on: ubuntu-latest
6170
permissions:
6271
contents: write

0 commit comments

Comments
 (0)