Skip to content

Commit

Permalink
Add pie build mode to all binary builds
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed May 7, 2024
1 parent 1c103e6 commit 8191faa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ jobs:
- name: Build V2Ray
run: |
mkdir -p build_assets
EXTRA_ARG=""
case "$GOOS-$GOARCH" in
"linux-386")
;&
"linux-amd64")
;&
"linux-arm64")
EXTRA_ARG=EXTRA_ARG+"-buildmode=pie"
;;
esac
go build -v -o build_assets/v2ray -trimpath -ldflags "-s -w -buildid=" ./main
- name: Rename Windows V2Ray
Expand Down

0 comments on commit 8191faa

Please sign in to comment.