Skip to content

Commit

Permalink
feat: build darwin/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Jul 27, 2021
1 parent 3eb9021 commit 9ca2ba7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ on:
pull_request:
branches:
- '**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
./bin/golangci-lint run -v
- uses: golangci/golangci-lint-action@v2
build:
runs-on: ${{ matrix.os }}
needs: lint
Expand All @@ -27,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- run: go build ./cmd/files-updater-npm/
- run: go test -v ./...
release:
Expand All @@ -37,7 +33,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- run: |
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
Expand All @@ -47,7 +43,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
ghr: true
- run: |
gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/files-updater-npm/pkg/updater.FUVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/files-updater-npm/
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/files-updater-npm/pkg/updater.FUVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/files-updater-npm/
cd bin/ && shasum -a 256 * > ./files-updater-npm_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
if: steps.semrel.outputs.version != ''
env:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-semantic-release/files-updater-npm

go 1.15
go 1.16

require (
github.com/go-semantic-release/semantic-release/v2 v2.12.1
Expand Down

0 comments on commit 9ca2ba7

Please sign in to comment.