Skip to content

Commit 7aa869c

Browse files
committed
chore: pin Rust toolchain
Avoids surprises because of: - failing clippy tests - ever-so-slightly different snapshot outputs - discussions about "works for me" (the WASI targets in Rust are kinda new, hence sometimes there are slight behavior differences)
1 parent c28ebcd commit 7aa869c

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ jobs:
4646
with:
4747
tool: cargo-deny,just,tombi,typos
4848

49-
- name: Install stable toolchain
50-
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
51-
with:
52-
components: clippy, rustfmt
53-
toolchain: stable
54-
targets: wasm32-wasip2
49+
- name: Install Rust toolchain
50+
shell: bash
51+
run: |
52+
rustup toolchain install
5553
5654
- name: Rust Cache
5755
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2

.github/workflows/prebuild.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ jobs:
5050
with:
5151
tool: just
5252

53-
- name: Install stable toolchain
54-
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
55-
with:
56-
toolchain: stable
57-
targets: wasm32-wasip2
53+
- name: Install Rust toolchain
54+
shell: bash
55+
run: |
56+
rustup toolchain install
5857
5958
- name: build "add one" example (debug)
6059
run: just guests::rust::build-add-one-debug

rust-toolchain.toml

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

0 commit comments

Comments
 (0)