Skip to content

Commit f467fa3

Browse files
committed
ci: mirror nightly OOM fixes in manual release (parallelism=1, GOMEMLIMIT, -trimpath)
1 parent 1c9963f commit f467fa3

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/manual-release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ jobs:
4444
with:
4545
distribution: goreleaser
4646
version: "~> v2"
47-
args: release --clean --skip=validate
47+
args: release --clean --skip=validate --parallelism=1
4848
env:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5050
GORELEASER_CURRENT_TAG: ${{ steps.get-tag.outputs.tag }}
51+
GOGC: "50"
52+
GOMEMLIMIT: "5GiB"
5153

5254
- name: Mark release as latest
5355
env:

.goreleaser.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,20 @@ version: 2
33

44
project_name: osmedeus
55

6-
before:
7-
hooks:
8-
- go mod tidy
9-
106
builds:
117
- id: osmedeus
128
main: ./cmd/osmedeus
139
binary: osmedeus
1410
env:
1511
- CGO_ENABLED=0
12+
flags:
13+
- -trimpath
1614
goos:
1715
- linux
1816
- darwin
1917
goarch:
2018
- amd64
2119
- arm64
22-
- 386
23-
ignore:
24-
- goos: darwin
25-
goarch: 386
2620
ldflags:
2721
- -s -w
2822
- -X main.BuildTime={{.Date}}

0 commit comments

Comments
 (0)