From b4142f3075f89aa435cc84e0f2d10e5fe5f0b7b9 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Fri, 8 Aug 2025 12:12:37 +0200 Subject: [PATCH] build: Pin Rust toolchain minor version Pin to the latest Rust toolchain minor version. Closes #2686 --- .github/workflows/lint.yml | 10 +++++----- .github/workflows/test.yml | 6 ++++-- rust-toolchain.toml | 4 ++++ 3 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ab3951fd23..3658d3bdc1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -45,11 +45,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 - - name: Install Rust Toolchain - run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update - - - name: Add Target - run: rustup target add ${{ matrix.target }} + - name: Setup Rust Toolchain + run: | + rustup set profile minimal + rustup component add clippy rustfmt + rustup target add ${{ matrix.target }} - name: Install musl-gcc (Linux only) if: matrix.os == 'ubuntu-24.04' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 318234c9bb..63f6c247fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,8 +46,10 @@ jobs: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 - - name: Add Target - run: rustup target add ${{ matrix.target }} + - name: Setup Rust Toolchain + run: | + rustup set profile minimal + rustup target add ${{ matrix.target }} - name: Install musl-gcc (Linux only) if: matrix.os == 'ubuntu-24.04' diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000000..6697c67365 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +# We pin the minor version to prevent new Clippy lints from breaking CI. +# But, we still want to pick up new patch versions. +channel = "1.89"