From 308ace855934cf695375597a4e5c7bdbe8ba1e17 Mon Sep 17 00:00:00 2001 From: Cheney Date: Mon, 2 Nov 2026 10:28:13 +0800 Subject: [PATCH] =?UTF-8?q?ci(android):=20Rust=20=E7=BC=93=E5=AD=98=20key?= =?UTF-8?q?=20=E5=8D=87=E5=88=B0=20v2,=20=E9=87=8D=E5=BB=BA=E5=90=AB=20car?= =?UTF-8?q?go-ndk/settings.toml=20=E7=9A=84=E5=AE=8C=E6=95=B4=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/android-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/android-build.yml b/.gitea/workflows/android-build.yml index 603bf95..cce585f 100644 --- a/.gitea/workflows/android-build.yml +++ b/.gitea/workflows/android-build.yml @@ -62,9 +62,11 @@ jobs: ~/.cargo ~/.rustup # 工具链升级时 bump 版本号使缓存失效重装 (含 cargo-ndk) + # v2: v1 缓存是从只缓存 toolchains 的旧配置生成的, 缺 cargo-ndk/settings.toml, + # 且缓存命中后不会回写, 所以 bump 一次重建完整缓存。 # 注意: 必须缓存整个 ~/.rustup。只缓存 ~/.rustup/toolchains 会丢掉 # settings.toml (默认 toolchain 记录), 缓存命中时 cargo 无法选择版本。 - key: rust-android-v1-${{ runner.os }} + key: rust-android-v2-${{ runner.os }} - name: Cache Tauri cargo target uses: https://gitea.com/actions/cache@v4