Skip to content

Commit

Permalink
update automatic builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Ferreira committed Oct 26, 2024
1 parent 6e64a24 commit cec7d49
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: write

jobs:
goreleaser:
build-linux-windows:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -18,11 +18,33 @@ jobs:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Run GoReleaser
with:
go-version: '1.23' # Especifique a versão do Go conforme necessário
- name: Run GoReleaser for Linux and Windows
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean --skip=publish,validate --id=build-linux-windows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23' # Especifique a versão do Go conforme necessário
- name: Run GoReleaser for macOS
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
args: release --clean --skip=publish,validate --id=build-macos
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ before:
- go generate ./...

builds:
- id: build
- id: build-linux-windows
goos:
- windows
- linux
goarch:
- amd64
- arm64
- id: build-macos
goos:
- darwin
goarch:
- amd64
Expand Down

0 comments on commit cec7d49

Please sign in to comment.