feat(ci): setup and cache minimal toolchain (#1683)

* feat(ci): setup and cache minimal toolchain

* dev: components

* fix: broken rpds

* fix: edition 2024??
This commit is contained in:
Myriad-Dreamin 2025-04-30 17:45:13 +08:00 committed by GitHub
parent 6118b346d6
commit 1108b39e3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 21 additions and 30 deletions

View file

@ -3,7 +3,7 @@ import fs from "fs";
const ciFile = fs.readFileSync(".github/workflows/ci.yml", "utf-8");
const toolchainRe = (forWhat) =>
new RegExp(/dtolnay\/rust-toolchain@(\d+\.\d+\.\d+)/.source + `\\s*#\\s*${forWhat}`);
new RegExp(/toolchain: (\d+\.\d+\.\d+)/.source + `\\s*#\\s*${forWhat}`);
const ciCheckedVersion = ciFile.match(toolchainRe("check-min-version"))?.[1];
if (!ciCheckedVersion) {