Skip to content

Commit

Permalink
remove quotes from flags args
Browse files Browse the repository at this point in the history
  • Loading branch information
xEricL committed Feb 8, 2024
1 parent 9a7db76 commit cd97b01
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ jobs:
FLAGS="-trimpath"
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
FLAGS+=" -buildmode=pie"
elif [ "${{ matrix.arch }}" = "windows-latest" ]; then
FLAGS+=" -buildmode=pie"
fi
LDFLAGS="-s -w -X main.version=${VERSION} -X main.sentryDSN=${SENTRY}"
if [ "${{ matrix.arch }}" = "windows-latest" ]; then
LDFLAGS+=" -H=windowsgui"
fi
# Send to env
Expand All @@ -62,7 +65,7 @@ jobs:
GOARCH="${{ matrix.arch }}"
go build
-o bin/pinnacle
"${FLAGS}" -ldflags="-s -w -X main.version=${VERSION} -X main.sentryDSN=${SENTRY}"
${FLAGS} -ldflags="${LDFLAGS}"
pinnacle/src
- name: Upload artifact
Expand Down

0 comments on commit cd97b01

Please sign in to comment.