Skip to content

Commit

Permalink
Merge pull request #14 from gazedreamily/master
Browse files Browse the repository at this point in the history
  • Loading branch information
peanut996 committed Jun 5, 2024
2 parents dd9e0f9 + a2730f8 commit 6f4ec20
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 6f4ec20

Please sign in to comment.