Skip to content

Commit 6000fc6

Browse files
committed
no bloat
1 parent 5c35dfc commit 6000fc6

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,32 @@ 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
4149
mkdir -p staging
42-
# Recursively find any build product and follow symlinks
4350
find -L result -type f | while read -r file; do
4451
filename=$(basename "$file")
4552
cp -L "$file" "staging/${{ github.ref_name }}-${{ matrix.system }}-$filename"
4653
done
4754
4855
rm result
49-
nix-store --gc
5056
5157
- name: Upload Temporary Artifact
5258
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)