Skip to content

Commit b491987

Browse files
Mirko-von-LeipzigMirko von Leipzig
authored andcommitted
ci: install toolchain properly (#2026)
1 parent 513660b commit b491987

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- uses: ./.github/actions/install-rocksdb
7575
- uses: ./.github/actions/install-protobuf-compiler
7676
- name: Rustup
77-
run: rustup update --no-self-update
77+
run: rustup toolchain install --no-self-update
7878
- uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
7979
with:
8080
shared-key: ${{ env.RUST_CACHE_SUFFIX }}
@@ -130,7 +130,7 @@ jobs:
130130
with:
131131
persist-credentials: false
132132
- name: Rustup
133-
run: rustup update --no-self-update
133+
run: rustup toolchain install --no-self-update
134134
- uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
135135
with:
136136
shared-key: ${{ env.RUST_CACHE_SUFFIX }}
@@ -149,7 +149,7 @@ jobs:
149149
with:
150150
persist-credentials: false
151151
- name: Rustup
152-
run: rustup update --no-self-update
152+
run: rustup toolchain install --no-self-update
153153
- uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
154154
with:
155155
tool: nextest@0.9.122
@@ -174,7 +174,7 @@ jobs:
174174
with:
175175
persist-credentials: false
176176
- name: Rustup
177-
run: rustup update --no-self-update
177+
run: rustup toolchain install --no-self-update
178178
- uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
179179
with:
180180
shared-key: ${{ env.RUST_CACHE_SUFFIX }}
@@ -197,7 +197,7 @@ jobs:
197197
with:
198198
persist-credentials: false
199199
- name: Rustup
200-
run: rustup update --no-self-update
200+
run: rustup toolchain install --no-self-update
201201
- uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
202202
with:
203203
shared-key: ${{ env.RUST_CACHE_SUFFIX }}
@@ -283,7 +283,7 @@ jobs:
283283
with:
284284
persist-credentials: false
285285
- name: Rustup
286-
run: rustup update --no-self-update
286+
run: rustup toolchain install --no-self-update
287287
- name: cargo build
288288
run: |
289289
cargo build --locked -p miden-remote-prover-client \
@@ -320,9 +320,7 @@ jobs:
320320
with:
321321
persist-credentials: false
322322
- name: Rustup +nightly
323-
run: |
324-
rustup update --no-self-update nightly
325-
rustup +nightly component add rustfmt
323+
run: rustup toolchain install --no-self-update nightly --component rustfmt
326324
- name: Fmt
327325
run: make format-check
328326

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: ./.github/actions/install-rocksdb
5151
- uses: ./.github/actions/install-protobuf-compiler
5252
- name: Install rust
53-
run: rustup update --no-self-update
53+
run: rustup toolchain install --no-self-update
5454
- name: Install cargo-hack
5555
uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
5656
with:

.github/workflows/publish-crates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: sudo apt-get update && sudo apt-get install -y jq
3535
- name: Update Rust toolchain
36-
run: rustup update --no-self-update
36+
run: rustup toolchain install --no-self-update
3737
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
3838
- uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
3939
with:

0 commit comments

Comments
 (0)