From b98f385ffdf74595c987137dc4301b65cb5578d9 Mon Sep 17 00:00:00 2001 From: liwenkai <2020583117@qq.com> Date: Fri, 26 Jun 2026 15:15:09 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E9=92=89=E4=BD=8F=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E9=93=BE=201.96.0(rust-toolchain.toml=20+=20ci/releas?= =?UTF-8?q?e=20=E5=90=8C=E6=AD=A5),=E6=B6=88=E9=99=A4=E6=9C=AC=E5=9C=B0/CI?= =?UTF-8?q?=20=E6=BC=82=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 3 ++- .github/workflows/release.yml | 3 ++- rust-toolchain.toml | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5dada1..aaaf281 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,8 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + # Pinned to match rust-toolchain.toml; bump both together. + uses: dtolnay/rust-toolchain@1.96.0 with: components: clippy, rustfmt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2042c9..eba7c03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,8 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + # Pinned to match rust-toolchain.toml; bump both together. + uses: dtolnay/rust-toolchain@1.96.0 with: targets: ${{ matrix.target }} diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..7a2a35c --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,7 @@ +# Pin the toolchain so local and CI never drift (a floating `stable` once +# silently bumped clippy/rustfmt and broke CI on untouched code). Bump this +# version deliberately, and keep the CI workflows' `dtolnay/rust-toolchain@` +# in sync with it. +[toolchain] +channel = "1.96.0" +components = ["rustfmt", "clippy"]