Skip to content

Commit cec7d49

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

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/goreleaser.yml

Lines changed: 25 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,33 @@ jobs:
1818
fetch-depth: 0
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
21-
- name: Run GoReleaser
21+
with:
22+
go-version: '1.23' # Especifique a versão do Go conforme necessário
23+
- name: Run GoReleaser for Linux and Windows
24+
uses: goreleaser/goreleaser-action@v6
25+
with:
26+
distribution: goreleaser
27+
version: "~> v2"
28+
args: release --clean --skip=publish,validate --id=build-linux-windows
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
build-macos:
33+
runs-on: macos-latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
- name: Set up Go
40+
uses: actions/setup-go@v5
41+
with:
42+
go-version: '1.23' # Especifique a versão do Go conforme necessário
43+
- name: Run GoReleaser for macOS
2244
uses: goreleaser/goreleaser-action@v6
2345
with:
2446
distribution: goreleaser
2547
version: "~> v2"
26-
args: release --clean
48+
args: release --clean --skip=publish,validate --id=build-macos
2749
env:
2850
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)