谁会CI帮我下我要死了 3

This commit is contained in:
2026-01-03 11:55:23 +08:00
parent 5c9aca0a0d
commit e14c86744f
+6 -4
View File
@@ -1,7 +1,7 @@
steps: steps:
- name: build-cross - name: build-cross
image: "ubuntu:24.04" image: "ubuntu:24.04"
shell: /bin/bash # 强制 bash,避免 dash 语法报错 shell: /bin/bash # 强制 bash,避免 dash 解析错误
when: when:
event: event:
- push - push
@@ -19,10 +19,12 @@ steps:
- apt-get update -y - apt-get update -y
- apt-get install -y curl git build-essential clang llvm mingw-w64 ninja-build jq - apt-get install -y curl git build-essential clang llvm mingw-w64 ninja-build jq
# 2️⃣ 安装 xmake 到全局 PATH安全稳定) # 2️⃣ 下载并安装 xmake 到全局 PATH(稳定)
- curl -fsSL https://xmake.io/shget.text | bash -s -- --install-to=/usr/local/bin - 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) - VERSION=$(git describe --tags --always --dirty)
# 4️⃣ Linux 构建 # 4️⃣ Linux 构建