Skip to content

Commit 40ea39f

Browse files
committed
add toolchain file to freeze rust version
1 parent 345b7d0 commit 40ea39f

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

.github/workflows/ci.yml

+2-20
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v4
29-
- id: install
30-
run: |
31-
rustup override set stable
32-
rustup update stable
3329

3430
- name: install `just`
3531
run: sudo snap install --edge --classic just
@@ -74,10 +70,6 @@ jobs:
7470
runs-on: ubuntu-latest
7571
steps:
7672
- uses: actions/checkout@v4
77-
- id: install
78-
run: |
79-
rustup override set stable
80-
rustup update stable
8173

8274
- name: restore build & cargo cache
8375
uses: Swatinem/rust-cache@v2
@@ -114,10 +106,6 @@ jobs:
114106
runs-on: ubuntu-latest
115107
steps:
116108
- uses: actions/checkout@v4
117-
- id: install
118-
run: |
119-
rustup override set stable
120-
rustup update stable
121109

122110
- name: restore build & cargo cache
123111
uses: Swatinem/rust-cache@v2
@@ -147,10 +135,7 @@ jobs:
147135
steps:
148136
- uses: actions/checkout@v4
149137
- id: install
150-
run: |
151-
rustup override set stable
152-
rustup update stable
153-
rustup component add rustfmt
138+
run: rustup component add rustfmt
154139

155140
- run: cargo fmt -- --check
156141

@@ -161,10 +146,7 @@ jobs:
161146
steps:
162147
- uses: actions/checkout@v4
163148
- id: install
164-
run: |
165-
rustup override set stable
166-
rustup update stable
167-
rustup component add clippy
149+
run: rustup component add clippy
168150

169151
- name: install `just`
170152
run: sudo snap install --edge --classic just

rust-toolchain.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "1.85.0"

0 commit comments

Comments
 (0)