From e14c86744f6d3b43688175cbe15207706be3fc57 Mon Sep 17 00:00:00 2001 From: PuqiAR Date: Sat, 3 Jan 2026 11:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=81=E4=BC=9ACI=E5=B8=AE=E6=88=91=E4=B8=8B?= =?UTF-8?q?=E6=88=91=E8=A6=81=E6=AD=BB=E4=BA=86=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 790d493..5896ce1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,7 +1,7 @@ steps: - name: build-cross image: "ubuntu:24.04" - shell: /bin/bash # 强制 bash,避免 dash 语法报错 + shell: /bin/bash # 强制 bash,避免 dash 解析错误 when: event: - push @@ -19,10 +19,12 @@ steps: - apt-get update -y - apt-get install -y curl git build-essential clang llvm mingw-w64 ninja-build jq - # 2️⃣ 安装 xmake 到全局 PATH(安全稳定) - - curl -fsSL https://xmake.io/shget.text | bash -s -- --install-to=/usr/local/bin + # 2️⃣ 下载并安装 xmake 到全局 PATH(稳定) + - curl -fsSL https://xmake.io/shget.text -o /tmp/xmake-get.sh + - chmod +x /tmp/xmake-get.sh + - bash /tmp/xmake-get.sh --install-to=/usr/local/bin - # 3️⃣ 获取版本号(tag 或 commit) + # 3️⃣ 获取真实版本号 - VERSION=$(git describe --tags --always --dirty) # 4️⃣ Linux 构建