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