fix(ci): checkout 拉 submodules — 修 mac 端 qwen-asr build fail#282
Merged
Conversation
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\`,让所有平台都拉一致的源码树。
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
现象
release-tauri run 25415755417 中 mac arm64 在 `cargo build` 阶段挂掉:
```
error: no such file or directory: 'vendor/qwen-asr/qwen_asr.c'
clang: error: no input files
File Walkthrough
ci.yml
Fetch submodules in Windows CI.github/workflows/ci.yml
submodules: recursivetoactions/checkout@v4.vendor/qwen-asr.release-tauri.yml
Fix release workflow submodule checkout.github/workflows/release-tauri.yml
cargo buildfailures caused by missingvendor/qwen-asrsources.
build.rs.