Skip to content

Commit dc901cf

Browse files
authored
Use an older version of Rust to work around a crash in 1.61+ (#297)
* Use an older version of Rust to work around a crash in 1.61+ Reported to not crash with 1.60 but crashes with 1.61, see rust-lang/rust#97222 * Install more rust/cargo tools
1 parent 4cea127 commit dc901cf

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ jobs:
146146
shell: bash
147147
run: bash build/ci-install-rust.sh
148148

149+
#TODO: 1.61 crashes due to a big enum: https://github.com/rust-lang/rust/issues/97222
150+
- name: Use older rustc version
151+
shell: bash
152+
run: |
153+
rustup default 1.54.0
154+
rustup component add rustfmt
155+
rustup component add clippy
156+
rustup target add wasm32-unknown-unknown
157+
149158
- uses: actions/setup-node@v3
150159
with:
151160
node-version: ${{env.CI_NODE_MIN_VER}}

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ jobs:
9696
shell: bash
9797
run: bash build/ci-install-rust.sh
9898

99+
#TODO: 1.61 crashes due to a big enum: https://github.com/rust-lang/rust/issues/97222
100+
- name: Use older rustc version
101+
shell: bash
102+
run: |
103+
rustup default 1.54.0
104+
rustup component add rustfmt
105+
rustup component add clippy
106+
rustup target add wasm32-unknown-unknown
107+
99108
- uses: actions/setup-node@v3
100109
with:
101110
node-version: ${{env.CI_NODE_MIN_VER}}

0 commit comments

Comments
 (0)