1
0
Fork 0
mirror of synced 2024-12-22 06:31:05 -05:00
This commit is contained in:
Ilya Sosnovsky 2021-10-21 12:25:23 +03:00
parent 4487c259cb
commit 202ac65f3f
3 changed files with 4 additions and 4 deletions

View file

@ -23,4 +23,4 @@ jobs:
ldflags: '-linkmode external -extldflags "-static" -s -w'
pre_command: bash ./install-deps.sh
binary_name: "openvpn-user"
asset_name: openvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.
asset_name: openvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}

View file

@ -25,4 +25,4 @@ jobs:
build_command: bash ./build_arm.sh
pre_command: bash ./install-deps_arm.sh
binary_name: "openvpn-user-${{ matrix.goarch }}"
asset_name: openvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.
asset_name: openvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}

View file

@ -2,9 +2,9 @@
if [[ "$GOOS" == "linux" ]]; then
if [[ "$GOARCH" == "arm" ]]; then
CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm go build -ldflags "-linkmode external -extldflags -static -s -w" -o openvpn-user-arm
CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm go build -ldflags "-linkmode external -extldflags -static -s -w" @
fi
if [[ "$GOARCH" == "arm64" ]]; then
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-linkmode external -extldflags -static -s -w" -o openvpn-user-arm64
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-linkmode external -extldflags -static -s -w" @
fi
fi