mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-08 01:16:47 +08:00
fix(release): rename GOARCH to TARGET_GOARCH in release workflow to resolve variable mismatch during FreeBSD builds
This commit is contained in:
@@ -493,7 +493,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TARGET: ${{ matrix.target }}
|
||||
GOARCH: ${{ matrix.goarch }}
|
||||
TARGET_GOARCH: ${{ matrix.goarch }}
|
||||
ASSET_ARCH: ${{ matrix.asset_arch }}
|
||||
ASSET_SUFFIX: ${{ matrix.asset_suffix }}
|
||||
strategy:
|
||||
@@ -576,7 +576,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p "dist/${TARGET}/bin"
|
||||
CGO_ENABLED=0 GOOS=freebsd GOARCH="$GOARCH" go build -buildvcs=false \
|
||||
CGO_ENABLED=0 GOOS=freebsd GOARCH="$TARGET_GOARCH" go build -buildvcs=false \
|
||||
-ldflags="-s -w -X main.Version=${RELEASE_VERSION} -X main.Commit=${COMMIT} -X main.BuildDate=${BUILD_DATE}" \
|
||||
-o "dist/${TARGET}/bin/cli-proxy-api" ./cmd/server/
|
||||
- name: Package FreeBSD archive
|
||||
|
||||
Reference in New Issue
Block a user