谁会CI帮我下我要死了 3

This commit is contained in:
2026-01-03 11:55:23 +08:00
parent 5c9aca0a0d
commit e14c86744f

View File

@@ -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 构建