From 5fcc4672f5be13616d0cb234c1440e5d25ee1567 Mon Sep 17 00:00:00 2001 From: hechangqing Date: Sat, 28 Mar 2026 13:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'build=5Fgo.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_go.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 build_go.sh diff --git a/build_go.sh b/build_go.sh new file mode 100644 index 0000000..8445d08 --- /dev/null +++ b/build_go.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +echo "=== Jenkins 编译 Go 项目 ===" + +# 设置阿里源 +export GOPROXY=https://mirrors.aliyun.com/goproxy/,direct + +echo "使用阿里源下载依赖..." +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o quincy-admin-linux + +pwd +echo "✅ 编译完成" \ No newline at end of file