mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
chore: 构建提速——sccache 编译缓存、mold 并行链接与快速 release profile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user