diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 63930ba..1289034 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -9,7 +9,7 @@ permissions: contents: write jobs: - goreleaser: + build-linux-windows: runs-on: ubuntu-latest steps: - name: Checkout @@ -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' + - name: Run GoReleaser for Linux and Windows + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: release --clean --skip-publish --skip-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' + - name: Run GoReleaser for macOS uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: "~> v2" - args: release --clean + args: release --clean --skip-publish --skip-validate --id=build-macos env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6f2ad44..1a4c58b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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