From e3f81750176539504779b44ecec7ef88f11e6e38 Mon Sep 17 00:00:00 2001 From: Denis Blanchette Date: Thu, 25 Nov 2021 14:45:22 -0500 Subject: [PATCH] Build macOS ARM binaries + update goreleaser --- .github/workflows/build.yml | 9 ++++++--- .goreleaser.yml | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c8e0b45..cce3027f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,9 +53,12 @@ jobs: with: emptyCommits: false - - name: Build Tag + - name: Run GoReleaser if: github.ref != 'refs/heads/master' + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - curl -sL https://git.io/goreleaser | bash; diff --git a/.goreleaser.yml b/.goreleaser.yml index 16a3869a..54381c11 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -7,6 +7,11 @@ builds: - linux goarch: - amd64 + - arm64 + +# Build one binary for Mac OS (arm64 and amd64) +universal_binaries: + - replace: true # Archive customization archives: