From f5a790180cd57adb81514dadf7a7d5e75739e41a Mon Sep 17 00:00:00 2001 From: Lorenzo Delgado Date: Thu, 25 Jul 2024 19:33:45 +0200 Subject: [PATCH] chore: pin rust toolchain version (#284) Signed-off-by: Lorenzo Delgado --- .github/workflows/ci.yml | 7 ++++--- rust-toolchain.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5655028..b4c5ec4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@1fbea72663f6d4c03efaab13560c8a24cfd2a7cc # v1 with: - toolchain: stable components: clippy + cache: false - name: Cache rust build files uses: Leafwing-Studios/cargo-cache@6c2a159aab4b3ba20f083d241bb1f26b35262b99 # v2 @@ -73,9 +73,10 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - name: Setup Rust toolchain - uses: dtolnay/rust-toolchain@nightly + uses: actions-rust-lang/setup-rust-toolchain@1fbea72663f6d4c03efaab13560c8a24cfd2a7cc # v1 with: toolchain: nightly components: rustfmt + cache: false - run: cargo +nightly fmt --all -- --check diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 02cb8fc..7ae2b72 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "stable" +channel = "1.79.0" profile = "default"