1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-26 23:24:35 -04:00

Add pie build mode to all binary builds

This commit is contained in:
Shelikhoo 2024-05-04 07:26:05 +01:00 committed by Xiaokang Wang (Shelikhoo)
parent 1c103e6179
commit 8191faa6e0

View File

@ -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