From 262a9ad2d7f8338de7a4d6cd72f8a4cee103d6d6 Mon Sep 17 00:00:00 2001 From: baiqing Date: Wed, 6 May 2026 13:03:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20checkout=20=E6=8B=89=20submodules=20?= =?UTF-8?q?=E2=80=94=20=E4=BF=AE=20mac=20=E7=AB=AF=20qwen-asr=20build=20fa?= =?UTF-8?q?il?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release-tauri.yml run 25415755417 mac arm64 在 cargo build 时挂在: error: no such file or directory: 'vendor/qwen-asr/qwen_asr.c' 根因:build.rs 的 #[cfg(target_os = "macos")] 分支用 cc-rs 编译 vendor/qwen-asr/*.c,但 vendor/qwen-asr 是 git submodule,CI 的 actions/checkout@v4 默认不拉 submodule,目录是空的。Linux/Windows build.rs 不进 cc 编译路径,所以没踩;mac 是唯一编译 qwen-asr 的平台。 修:release-tauri.yml + ci.yml 的 actions/checkout@v4 都加 \`with: submodules: recursive\`,让所有平台都拉一致的源码树。 --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release-tauri.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d769e900..53d5fa08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,10 @@ jobs: working-directory: openless-all/app steps: - uses: actions/checkout@v4 + with: + # vendor/qwen-asr 是 macOS 上 build.rs 必须的 git submodule。Windows + # checkout 也拉一份保持与 release-tauri.yml 一致,开销几秒可以忽略。 + submodules: recursive - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release-tauri.yml b/.github/workflows/release-tauri.yml index 8412712e..858bdba9 100644 --- a/.github/workflows/release-tauri.yml +++ b/.github/workflows/release-tauri.yml @@ -50,6 +50,10 @@ jobs: TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} steps: - uses: actions/checkout@v4 + with: + # vendor/qwen-asr 是 macOS 上 build.rs 必须的 git submodule(cc-rs 编译 + # antirez/qwen-asr 的 C 源),不拉就会在 mac 端 cargo build 阶段挂掉。 + submodules: recursive - uses: actions/setup-node@v4 with: