fixes
This commit is contained in:
parent
4487c259cb
commit
202ac65f3f
3 changed files with 4 additions and 4 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -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 }}
|
||||
|
|
2
.github/workflows/release_arm.yaml
vendored
2
.github/workflows/release_arm.yaml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue