CC 应从 x86-64-linux-gnu-gcc 改为 x86_64-linux-gnu-gcc Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -18,7 +18,7 @@ steps:
|
||||
- apt-get update && apt-get install -y gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu
|
||||
- mkdir -p release
|
||||
# 构建 amd64 (native)
|
||||
- GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=x86-64-linux-gnu-gcc go build -ldflags="-w -s" -o release/game-driver-linux-amd64 .
|
||||
- GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-linux-gnu-gcc go build -ldflags="-w -s" -o release/game-driver-linux-amd64 .
|
||||
# 构建 arm64 (cross-compile)
|
||||
- GOOS=linux GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go build -ldflags="-w -s" -o release/game-driver-linux-arm64 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user