From a642ff62eaee6c15e86d49da9d58da2a3c68299e Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sat, 10 Oct 2026 11:32:47 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8F=AF=E5=A4=8D=E7=94=A8=20workflow=20?= =?UTF-8?q?=E7=A6=81=E7=94=A8=20mold=20=E8=B5=B0=E9=BB=98=E8=AE=A4=20lld?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/setup-tools/action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml index fb0fc490..2dc8af58 100644 --- a/.github/actions/setup-tools/action.yml +++ b/.github/actions/setup-tools/action.yml @@ -33,6 +33,14 @@ runs: sudo cp "$HOME/oxide-tools-cache/sccache" "$HOME/oxide-tools-cache/mold" /usr/bin/ cp "$HOME/oxide-tools-cache/cargo-nextest" "$HOME/.cargo/bin/" + - name: Disable mold in CI + shell: bash + run: | + # mold 在主 workflow 正常,但在可复用 workflow 里 sccache 包装 rustc 的 + # 链接子进程定位不到 mold、回退默认 ld 报 cannot find ld。CI 统一走默认 + # lld;只删工作副本的 mold 行,本地提交的 config 保留 mold 提速。 + sed -i '/link-arg=-fuse-ld=mold/d' .cargo/config.toml + - name: Verify tools in PATH shell: bash run: |