Skip to content

Commit

Permalink
fix: arm64 release binary error (#49)
Browse files Browse the repository at this point in the history
* fix: arm64 release binary err

* chore: define goos and goarch
  • Loading branch information
daviderli614 committed Feb 1, 2023
1 parent 09cb2c3 commit f7e8f3b
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ jobs:
matrix:
# The file format is gtctl-<os>-<arch>
include:
- arch: x86_64-unknown-linux-gnu
os: ubuntu-latest
- os: ubuntu-latest
file: gtctl-linux-amd64
- arch: aarch64-unknown-linux-gnu
os: ubuntu-latest
goos: linux
goarch: amd64
- os: ubuntu-latest
file: gtctl-linux-arm64
- arch: aarch64-apple-darwin
os: macos-latest
goos: linux
goarch: arm64
- os: macos-latest
file: gtctl-darwin-arm64
- arch: x86_64-apple-darwin
os: macos-latest
goos: darwin
goarch: arm64
- os: macos-latest
file: gtctl-darwin-amd64
goos: darwin
goarch: amd64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
Expand All @@ -36,6 +40,9 @@ jobs:
- name: Build project
run: |
make
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}

- name: Calculate checksum and rename binary
shell: bash
Expand Down

0 comments on commit f7e8f3b

Please sign in to comment.