Skip to content

Commit

Permalink
Update GoReleaser config to build arm64 for M1 (#125)
Browse files Browse the repository at this point in the history
* Update Actions config to use GoReleaser action

* Add arm64 to goreelaser architectures

This will allow installation to work properly on M1 Macs.

* Adjust indentation on env argument
  • Loading branch information
jayzes committed Jun 12, 2021
1 parent e17c1aa commit 6cbe96a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/[email protected]
with:
Expand All @@ -29,7 +31,8 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: v0.143.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: v0.143.0
run: curl -sL https://git.io/goreleaser | bash
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ builds:
- 386
- amd64
- arm
- arm64
archives:
- id: zip
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
Expand Down

0 comments on commit 6cbe96a

Please sign in to comment.