Skip to content

Commit 243549b

Browse files
authored
fix(ci): add dummy arm build (#61)
* fix(ci): add dummy arm build * fix: missing goreleaser config * fix(ci): add go v1.17 * chore(makefile): bump version * chore(ci): update release action
1 parent 0b6f34e commit 243549b

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
uses: actions/checkout@v2
5656
with:
5757
fetch-depth: 0
58+
# need to setup to avoid https://goreleaser.com/deprecations/#builds-for-darwinarm64
59+
- name: Set up Go
60+
uses: actions/setup-go@v2
61+
with:
62+
go-version: 1.17
5863
- name: Download macos
5964
uses: actions/download-artifact@v2
6065
with:
@@ -68,8 +73,11 @@ jobs:
6873
- name: Correct goreleaser prebuilt path
6974
run: |
7075
# as it is the format goreleaser expects. See .goreleaser.yml -> prebuilt -> path
71-
mv build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
72-
mv build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
76+
# we need at least an arm url for brew: https://github.com/kreuzwerker/homebrew-taps/issues/11
77+
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
78+
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_arm64
79+
cp build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
80+
cp build/awsu-macos-latest-amd64 build/awsu_darwin_arm64
7381
ls -lash build
7482
- name: Run GoReleaser
7583
uses: goreleaser/goreleaser-action@v2

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,19 @@ jobs:
4141
name: awsu-${{ matrix.os }}-amd64
4242
path: build/awsu-${{ matrix.os }}-amd64
4343

44-
release-test:
44+
release:
4545
runs-on: ubuntu-latest
4646
needs: [artifact-build]
4747
steps:
4848
- name: Checkout
4949
uses: actions/checkout@v2
5050
with:
5151
fetch-depth: 0
52+
# need to setup to avoid https://goreleaser.com/deprecations/#builds-for-darwinarm64
53+
- name: Set up Go
54+
uses: actions/setup-go@v2
55+
with:
56+
go-version: 1.17
5257
- name: Download macos
5358
uses: actions/download-artifact@v2
5459
with:
@@ -62,8 +67,11 @@ jobs:
6267
- name: Correct goreleaser prebuilt path
6368
run: |
6469
# as it is the format goreleaser expects. See .goreleaser.yml -> prebuilt -> path
65-
mv build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
66-
mv build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
70+
# we need at least an arm url for brew: https://github.com/kreuzwerker/homebrew-taps/issues/11
71+
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
72+
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_arm64
73+
cp build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
74+
cp build/awsu-macos-latest-amd64 build/awsu_darwin_arm64
6775
ls -lash build
6876
- name: Run GoReleaser
6977
uses: goreleaser/goreleaser-action@v2

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ builds:
66
- darwin
77
goarch:
88
- amd64
9+
- arm64
910
prebuilt:
1011
path: build/awsu_{{ .Os }}_{{ .Arch }}
1112
archives:
1213
- replacements:
1314
linux: Linux
1415
darwin: Darwin
1516
amd64: x86_64
17+
arm64: arm
1618
checksum:
1719
name_template: 'checksums.txt'
1820
snapshot:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := "2.3.3"
1+
VERSION := "2.3.9"
22

33
BUILD := $(shell git rev-parse --short HEAD)
44
FLAGS := "-s -w -X=main.build=$(BUILD) -X=main.time=`TZ=UTC date '+%FT%TZ'` -X=main.version=$(VERSION)"

0 commit comments

Comments
 (0)