Skip to content

Commit 6cbe96a

Browse files
authored
Update GoReleaser config to build arm64 for M1 (#125)
* 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
1 parent e17c1aa commit 6cbe96a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
1618
- name: Set up Go
1719
uses: actions/[email protected]
1820
with:
@@ -29,7 +31,8 @@ jobs:
2931
restore-keys: |
3032
${{ runner.os }}-go-
3133
- name: Run GoReleaser
34+
uses: goreleaser/goreleaser-action@v2
35+
with:
36+
version: v0.143.0
3237
env:
3338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
VERSION: v0.143.0
35-
run: curl -sL https://git.io/goreleaser | bash

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ builds:
1414
- 386
1515
- amd64
1616
- arm
17+
- arm64
1718
archives:
1819
- id: zip
1920
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"

0 commit comments

Comments
 (0)