chore: 构建提速——sccache 编译缓存、mold 并行链接与快速 release profile

This commit is contained in:
2026-10-10 10:19:56 +00:00
parent 6ecd3aed89
commit 55313cf3a9
4 changed files with 51 additions and 23 deletions
+6
View File
@@ -23,6 +23,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
# .cargo/config.toml 依赖 sccache(rustc-wrapper)与 mold(-fuse-ld=mold),
# 两者均在 Ubuntu 仓库中。CI 同样受益:sccache 配合 rust-cache 命中缓存,
# mold 并行链接。
- name: Install sccache and mold
run: sudo apt-get update -y && sudo apt-get install -y sccache mold
- name: Check formatting
run: cargo fmt --all -- --check