Skip to content

Commit a471400

Browse files
feat: build darwin/arm64
1 parent 03d2f42 commit a471400

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/ci.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ on:
66
pull_request:
77
branches:
88
- '**'
9-
109
jobs:
1110
lint:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- uses: actions/checkout@v2
15-
- name: golangci-lint
16-
run: |
17-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
18-
./bin/golangci-lint run -v
14+
- uses: golangci/golangci-lint-action@v2
1915
build:
2016
runs-on: ${{ matrix.os }}
2117
needs: lint
@@ -27,7 +23,7 @@ jobs:
2723
- uses: actions/checkout@v2
2824
- uses: actions/setup-go@v2
2925
with:
30-
go-version: 1.15
26+
go-version: 1.16
3127
- run: go build ./cmd/commit-analyzer-cz/
3228
- run: go test -v ./...
3329
release:
@@ -37,7 +33,7 @@ jobs:
3733
- uses: actions/checkout@v2
3834
- uses: actions/setup-go@v2
3935
with:
40-
go-version: 1.15
36+
go-version: 1.16
4137
- run: |
4238
go get github.com/mitchellh/gox
4339
go get github.com/tcnksm/ghr
@@ -47,7 +43,7 @@ jobs:
4743
github-token: ${{ secrets.GITHUB_TOKEN }}
4844
ghr: true
4945
- run: |
50-
gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/commit-analyzer-cz/pkg/analyzer.CAVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/
46+
gox -parallel 4 -osarch="linux/amd64 darwin/amd64 darwin/arm64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/commit-analyzer-cz/pkg/analyzer.CAVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/
5147
cd bin/ && shasum -a 256 * > ./commit-analyzer-cz_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
5248
if: steps.semrel.outputs.version != ''
5349
env:

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/go-semantic-release/commit-analyzer-cz
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
github.com/go-semantic-release/semantic-release/v2 v2.12.1

0 commit comments

Comments
 (0)