From ea0754d9fa9f1a71e0a519cfe34fa4e23b1a78de Mon Sep 17 00:00:00 2001 From: xlli67 Date: Fri, 30 Oct 2026 03:26:39 +0800 Subject: [PATCH] ci: create ~/.cargo before writing config on macOS runners --- .github/workflows/rust.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cd615d35..244763d1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -198,7 +198,11 @@ jobs: fi fi rustup -V - + + # macOS runners ship rustup without creating ~/.cargo, so the redirect + # below would fail with "No such file or directory". Create it first. + mkdir -p ~/.cargo + # some additional configuration for cross-compilation on linux cat >>~/.cargo/config.toml <