File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 55
55
uses : actions/checkout@v2
56
56
with :
57
57
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
58
63
- name : Download macos
59
64
uses : actions/download-artifact@v2
60
65
with :
68
73
- name : Correct goreleaser prebuilt path
69
74
run : |
70
75
# 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
73
81
ls -lash build
74
82
- name : Run GoReleaser
75
83
uses : goreleaser/goreleaser-action@v2
Original file line number Diff line number Diff line change @@ -41,14 +41,19 @@ jobs:
41
41
name : awsu-${{ matrix.os }}-amd64
42
42
path : build/awsu-${{ matrix.os }}-amd64
43
43
44
- release-test :
44
+ release :
45
45
runs-on : ubuntu-latest
46
46
needs : [artifact-build]
47
47
steps :
48
48
- name : Checkout
49
49
uses : actions/checkout@v2
50
50
with :
51
51
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
52
57
- name : Download macos
53
58
uses : actions/download-artifact@v2
54
59
with :
62
67
- name : Correct goreleaser prebuilt path
63
68
run : |
64
69
# 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
67
75
ls -lash build
68
76
- name : Run GoReleaser
69
77
uses : goreleaser/goreleaser-action@v2
Original file line number Diff line number Diff line change @@ -6,13 +6,15 @@ builds:
6
6
- darwin
7
7
goarch :
8
8
- amd64
9
+ - arm64
9
10
prebuilt :
10
11
path : build/awsu_{{ .Os }}_{{ .Arch }}
11
12
archives :
12
13
- replacements :
13
14
linux : Linux
14
15
darwin : Darwin
15
16
amd64 : x86_64
17
+ arm64 : arm
16
18
checksum :
17
19
name_template : ' checksums.txt'
18
20
snapshot :
Original file line number Diff line number Diff line change 1
- VERSION := "2.3.3 "
1
+ VERSION := "2.3.9 "
2
2
3
3
BUILD := $(shell git rev-parse --short HEAD)
4
4
FLAGS := "-s -w -X=main.build=$(BUILD ) -X=main.time=` TZ=UTC date ' +%FT%TZ' ` -X=main.version=$(VERSION ) "
You can’t perform that action at this time.
0 commit comments