mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Add pie build mode to all binary builds
This commit is contained in:
parent
1c103e6179
commit
8191faa6e0
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user