Skip to content

Commit f3e3d96

Browse files
build: Pin Rust toolchain minor version
Pin the Rust toolchain minor version to 1.89.
1 parent b213f12 commit f3e3d96

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
3535

36+
- name: Add Rustup Target
37+
run: |
38+
rustup set profile minimal
39+
rustup target add ${{ matrix.target }}
40+
3641
- name: Cache Dependencies
3742
uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0
3843

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
- name: Checkout Repository
4141
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
4242

43-
- name: Install Rust Toolchain
44-
run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update
45-
46-
- name: Add Target
47-
run: rustup target add ${{ matrix.target }}
43+
- name: Setup Rust Toolchain
44+
run: |
45+
rustup set profile minimal
46+
rustup component add clippy rustfmt
47+
rustup target add ${{ matrix.target }}
4848
4949
- name: Install musl-gcc (Linux only)
5050
if: matrix.os == 'ubuntu-24.04'

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ jobs:
4141
- name: Checkout Repository
4242
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
4343

44-
- name: Add Target
45-
run: rustup target add ${{ matrix.target }}
44+
- name: Setup Rust Toolchain
45+
run: |
46+
rustup set profile minimal
47+
rustup target add ${{ matrix.target }}
4648
4749
- name: Install musl-gcc (Linux only)
4850
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)