Skip to content

Commit

Permalink
feat: add arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
GazeWooo committed Jun 5, 2024
1 parent dd9e0f9 commit a2730f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: [amd64]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3

Expand All @@ -28,7 +28,7 @@ jobs:

- name: Set ldflags as environment variable
run: |
if [ ${{ matrix.goos }} == 'linux' ]; then
if [ ${{ matrix.goos }} == 'linux' ]&&[ ${{ matrix.goarch }} == 'amd64' ]; then
LD_FLAGS="-X main.Version=${{ env.APP_VERSION }} -linkmode 'external' -extldflags '-static'"
else
LD_FLAGS="-X main.Version=${{ env.APP_VERSION }}"
Expand Down

0 comments on commit a2730f8

Please sign in to comment.