Skip to content

Commit b14effa

Browse files
committed
increase build parallelism in GH Actions workflow
If we try to build all non linux/hsm builds at once, the runner runs out of disk space. Signed-off-by: Jan Martens <jan@martens.eu.org>
1 parent 11c8c93 commit b14effa

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ jobs:
2727
release_os:
2828
- linux
2929
- hsm
30-
- other
30+
- darwin
31+
- freebsd
32+
- illumos
33+
- netbsd
34+
- openbsd
35+
- windows
3136
steps:
3237
- name: Disable release on nightly repository
3338
if: ${{ !inputs.nightly }}
@@ -162,13 +167,20 @@ jobs:
162167
run: |
163168
make static-dist
164169
165-
- name: "GoReleaser: Release"
170+
- name: Install GoReleaser
166171
if: startsWith(github.ref, 'refs/tags/') || inputs.nightly
167172
uses: goreleaser/goreleaser-action@v6
168173
with:
169-
distribution: goreleaser
170-
version: latest
171-
args: release --clean --timeout=60m --verbose --parallelism 2 -f goreleaser.${{ matrix.release_os }}.yaml
174+
install-only: true
175+
176+
- name: "GoReleaser: Release"
177+
if: startsWith(github.ref, 'refs/tags/') || inputs.nightly
178+
run: |
179+
if [[ ! -f "goreleaser.${{ matrix.release_os }}.yaml" ]]; then
180+
yq e '.builds[0].goos |= ["${{ matrix.release_os }}"]' "goreleaser.other.yaml" | goreleaser release --clean --timeout=60m --verbose --paralellism 2 -f -
181+
else
182+
goreleaser release --clean --timeout=60m --verbose --parallelism 2 -f "goreleaser.${{ matrix.release_os }}.yaml"
183+
fi
172184
env:
173185
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
174186
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}

goreleaser.other.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ builds:
7373
report_sizes: true
7474

7575
checksum:
76-
name_template: "checksums-other.txt"
76+
name_template: "checksums-{{ .Os }}.txt"
7777
disable: false
7878

7979
archives:

0 commit comments

Comments
 (0)