Skip to content

Commit 953e192

Browse files
author
Leandro Ferreira
committed
update automatic builder
1 parent 6e64a24 commit 953e192

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

.github/workflows/goreleaser.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
goreleaser:
12+
build-linux-windows:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
@@ -18,11 +18,29 @@ jobs:
1818
fetch-depth: 0
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
21-
- name: Run GoReleaser
21+
- name: Run GoReleaser for Linux and Windows
2222
uses: goreleaser/goreleaser-action@v6
2323
with:
2424
distribution: goreleaser
2525
version: "~> v2"
26-
args: release --clean
26+
args: release --clean --skip-publish --skip-validate --id=build-linux-windows
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
build-macos:
31+
runs-on: macos-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
- name: Set up Go
38+
uses: actions/setup-go@v5
39+
- name: Run GoReleaser for macOS
40+
uses: goreleaser/goreleaser-action@v6
41+
with:
42+
distribution: goreleaser
43+
version: "~> v2"
44+
args: release --clean --skip-publish --skip-validate --id=build-macos
2745
env:
2846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ before:
66
- go generate ./...
77

88
builds:
9-
- id: build
9+
- id: build-linux-windows
1010
goos:
1111
- windows
1212
- linux
13+
goarch:
14+
- amd64
15+
- arm64
16+
- id: build-macos
17+
goos:
1318
- darwin
1419
goarch:
1520
- amd64

0 commit comments

Comments
 (0)