@@ -12,18 +12,36 @@ jobs:
1212 matrix :
1313 target :
1414 - linux-x86_64
15+ - linux-arm64
1516 - darwin-x86_64
17+ - darwin-arm64
1618 - windows-x86_64
1719 include :
1820 - target : linux-x86_64
1921 os : ubuntu-latest
2022 name : ghz-linux-x86_64.tar.gz
23+ goos : linux
24+ goarch : amd64
25+ - target : linux-arm64
26+ os : ubuntu-latest
27+ name : ghz-linux-arm64.tar.gz
28+ goos : linux
29+ goarch : arm64
2130 - target : darwin-x86_64
2231 os : macOS-latest
2332 name : ghz-darwin-x86_64.tar.gz
33+ goos : darwin
34+ goarch : amd64
35+ - target : darwin-arm64
36+ os : macOS-latest
37+ name : ghz-darwin-arm64.tar.gz
38+ goos : darwin
39+ goarch : arm64
2440 - target : windows-x86_64
2541 os : windows-latest
2642 name : ghz-windows-x86_64.zip
43+ goos : windows
44+ goarch : amd64
2745 runs-on : ${{ matrix.os }}
2846 steps :
2947 - name : Checkout
4664 - name : Build ghz
4765 env :
4866 CGO_ENABLED : 0
67+ GOOS : ${{ matrix.goos }}
68+ GOARCH : ${{ matrix.goarch }}
4969 run : |
5070 mkdir ./dist/
5171 mkdir ./dist/${{ matrix.target }}/
@@ -118,9 +138,8 @@ jobs:
118138
119139 - name : Generate release notes
120140 run : |
121- # Temporary fix for https://github.com/actions/setup-go/issues/14
122141 export PATH=$PATH:$(go env GOPATH)/bin
123- go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
142+ go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
124143 # git-chglog -c .chglog/config.yml $(git describe --tags $(git rev-list --tags --max-count=1))
125144 git-chglog -c .chglog/config.yml ${{ env.RELEASE_VERSION }} > RELEASE-${{ env.RELEASE_VERSION }}.md
126145 - name : Create GitHub release ${{ matrix.target }}
@@ -129,8 +148,12 @@ jobs:
129148 files : |
130149 ghz-linux-x86_64.tar.gz
131150 ghz-linux-x86_64.tar.gz.sha256
151+ ghz-linux-arm64.tar.gz
152+ ghz-linux-arm64.tar.gz.sha256
132153 ghz-darwin-x86_64.tar.gz
133154 ghz-darwin-x86_64.tar.gz.sha256
155+ ghz-darwin-arm64.tar.gz
156+ ghz-darwin-arm64.tar.gz.sha256
134157 ghz-windows-x86_64.zip
135158 ghz-windows-x86_64.zip.sha256
136159 body_path : RELEASE-${{ env.RELEASE_VERSION }}.md
0 commit comments