Skip to content
Snippets Groups Projects
Commit ea42e09c authored by Christoph Witzko's avatar Christoph Witzko
Browse files

feat: build darwin/arm64

parent 70f5b3ac
No related branches found
No related tags found
No related merge requests found
...@@ -6,16 +6,12 @@ on: ...@@ -6,16 +6,12 @@ on:
pull_request: pull_request:
branches: branches:
- '**' - '**'
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: golangci-lint - uses: golangci/golangci-lint-action@v2
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
./bin/golangci-lint run -v
build: build:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: lint needs: lint
...@@ -27,7 +23,7 @@ jobs: ...@@ -27,7 +23,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
with: with:
go-version: 1.15 go-version: 1.16
- run: go build ./cmd/changelog-generator-default/ - run: go build ./cmd/changelog-generator-default/
- run: go test -v ./... - run: go test -v ./...
release: release:
...@@ -37,7 +33,7 @@ jobs: ...@@ -37,7 +33,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
with: with:
go-version: 1.15 go-version: 1.16
- run: | - run: |
go get github.com/mitchellh/gox go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr go get github.com/tcnksm/ghr
...@@ -47,7 +43,7 @@ jobs: ...@@ -47,7 +43,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
ghr: true ghr: true
- run: | - run: |
gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/changelog-generator-default/pkg/generator.CGVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/changelog-generator-default/ 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/changelog-generator-default/pkg/generator.CGVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/changelog-generator-default/
cd bin/ && shasum -a 256 * > ./changelog-generator-default_v${{steps.semrel.outputs.version}}_checksums.txt && cd - cd bin/ && shasum -a 256 * > ./changelog-generator-default_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
if: steps.semrel.outputs.version != '' if: steps.semrel.outputs.version != ''
env: env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment