Skip to content

Commit 1dcc54d

Browse files
build: Pin Rust toolchain minor version (#2687)
Pin to the latest Rust toolchain minor version. Closes #2686
1 parent 2a127c8 commit 1dcc54d

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
- name: Checkout Repository
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
4747

48-
- name: Install Rust Toolchain
49-
run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update
50-
51-
- name: Add Target
52-
run: rustup target add ${{ matrix.target }}
48+
- name: Setup Rust Toolchain
49+
run: |
50+
rustup set profile minimal
51+
rustup component add clippy rustfmt
52+
rustup target add ${{ matrix.target }}
5353
5454
- name: Install musl-gcc (Linux only)
5555
if: matrix.os == 'ubuntu-24.04'

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
- name: Checkout Repository
4747
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
4848

49-
- name: Add Target
50-
run: rustup target add ${{ matrix.target }}
49+
- name: Setup Rust Toolchain
50+
run: |
51+
rustup set profile minimal
52+
rustup target add ${{ matrix.target }}
5153
5254
- name: Install musl-gcc (Linux only)
5355
if: matrix.os == 'ubuntu-24.04'

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
# We pin the minor version to prevent new Clippy lints from breaking CI.
3+
# But, we still want to pick up new patch versions.
4+
channel = "1.89"

0 commit comments

Comments
 (0)