Skip to content

Commit f9cc399

Browse files
authored
Merge pull request #2034 from Shourya742/2025-12-19-add-toolchain
Add rust-toolchain.toml
2 parents fa5a6ac + 5dc66c6 commit f9cc399

File tree

6 files changed

+44
-1
lines changed

6 files changed

+44
-1
lines changed

.github/workflows/clippy-lint.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ jobs:
2424

2525
- name: Install Rust (1.89) + Clippy
2626
uses: dtolnay/[email protected]
27+
id: toolchain
2728
with:
2829
components: clippy
29-
30+
31+
# NOTE: A repo-local `rust-toolchain.toml` is still respected by rustup.
32+
# `dtolnay/rust-toolchain` installs the requested toolchain but does not
33+
# automatically override it.
34+
- name: Override toolchain
35+
run: |
36+
rustup override set ${{ steps.toolchain.outputs.name }}
37+
3038
- name: Run Clippy
3139
run: |
3240
cargo clippy --all-features -- -D warnings

.github/workflows/fuzz_tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616

1717
- name: Install Rust
1818
uses: dtolnay/rust-toolchain@nightly
19+
id: toolchain
20+
21+
# NOTE: A repo-local `rust-toolchain.toml` is still respected by rustup.
22+
# `dtolnay/rust-toolchain` installs the requested toolchain but does not
23+
# automatically override it.
24+
- name: Override toolchain
25+
run: |
26+
rustup override set ${{ steps.toolchain.outputs.name }}
1927
2028
- name: Install cargo-fuzz
2129
run: cargo install cargo-fuzz

.github/workflows/integration-tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848

4949
- name: Install Rust
5050
uses: dtolnay/[email protected]
51+
id: toolchain
52+
53+
# NOTE: A repo-local `rust-toolchain.toml` is still respected by rustup.
54+
# `dtolnay/rust-toolchain` installs the requested toolchain but does not
55+
# automatically override it.
56+
- name: Override toolchain
57+
run: |
58+
rustup override set ${{ steps.toolchain.outputs.name }}
5159
5260
- name: Install capnproto (Ubuntu)
5361
if: steps.detect.outputs.should_run_integration_test == 'true' && matrix.os == 'ubuntu-latest'

.github/workflows/miri.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ jobs:
1414

1515
- name: Install Rust nightly + Miri
1616
uses: dtolnay/rust-toolchain@nightly
17+
id: toolchain
1718
with:
1819
components: miri
20+
21+
# NOTE: A repo-local `rust-toolchain.toml` is still respected by rustup.
22+
# `dtolnay/rust-toolchain` installs the requested toolchain but does not
23+
# automatically override it.
24+
- name: Override toolchain
25+
run: |
26+
rustup override set ${{ steps.toolchain.outputs.name }}
1927
2028
- name: Miri setup
2129
run: cargo miri setup

.github/workflows/semver-check.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515

1616
- name: Install Rust (1.85)
1717
uses: dtolnay/[email protected]
18+
id: toolchain
19+
20+
# NOTE: A repo-local `rust-toolchain.toml` is still respected by rustup.
21+
# `dtolnay/rust-toolchain` installs the requested toolchain but does not
22+
# automatically override it.
23+
- name: Override toolchain
24+
run: |
25+
rustup override set ${{ steps.toolchain.outputs.name }}
1826
1927
- name: Cache Cargo registry
2028
uses: actions/cache@v4

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "1.75.0"
3+
components = [ "rustfmt", "clippy" ]

0 commit comments

Comments
 (0)