Skip to content

Commit 504568a

Browse files
authored
ci: fix GoReleaser build matrix (#1434)
* ci: fix GoReleaser build matrix * extend ignore list
1 parent 9429a3c commit 504568a

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
- uses: goreleaser/goreleaser-action@v5
8484
with:
85-
version: latest
85+
version: v1.26.2
8686
args: release --clean
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Validate release configuration
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".goreleaser.yml"
7+
- "Dockerfile.github-actions"
8+
- "go.mod"
9+
- "go.sum"
10+
- ".github/workflows/ci.yaml"
11+
- ".github/workflows/release-check.yaml"
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
snapshot:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
persist-credentials: false
24+
25+
- uses: actions/setup-go@v5
26+
with:
27+
go-version: "1.26.x"
28+
29+
- uses: docker/setup-qemu-action@v3
30+
- uses: docker/setup-buildx-action@v3
31+
32+
- run: echo "SOURCE=$(make echo-source)" >> "$GITHUB_ENV"
33+
- run: echo "DATABASE=$(make echo-database)" >> "$GITHUB_ENV"
34+
35+
- uses: goreleaser/goreleaser-action@v5
36+
with:
37+
version: v1.26.2
38+
args: release --snapshot --skip-publish --clean

‎.goreleaser.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ builds:
1616
- 386
1717
goarm:
1818
- 7
19+
ignore:
20+
- goos: windows
21+
goarch: arm
22+
- goos: darwin
23+
goarch: arm
24+
- goos: darwin
25+
goarch: 386
1926
main: ./cmd/migrate
2027
ldflags:
2128
- '-w -s -X main.Version={{ .Version }} -extldflags "static"'

0 commit comments

Comments
 (0)