1414 RUST_BACKTRACE : 1
1515 # pin nightly to avoid constantly throwing out cache
1616 TOOLCHAIN_FMT : nightly-2026-01-01
17+ # must match polkadot-sdk's CI toolchain (see .github/env in polkadot-sdk)
18+ TOOLCHAIN_STABLE : " 1.93.0"
1719
1820jobs :
1921 doc :
2022 runs-on : ubuntu-latest
2123 steps :
2224 - uses : actions/checkout@v4
23- - name : Install Rust stable
25+ - name : Install Rust ${{ env.TOOLCHAIN_STABLE }}
2426 uses : dtolnay/rust-toolchain@stable
2527 with :
28+ toolchain : ${{ env.TOOLCHAIN_STABLE }}
2629 targets : wasm32-unknown-unknown
2730 - uses : Swatinem/rust-cache@v2
2831 with :
@@ -58,10 +61,10 @@ jobs:
5861 runs-on : ubuntu-latest
5962 steps :
6063 - uses : actions/checkout@v4
61- - name : Install Rust stable
64+ - name : Install Rust ${{ env.TOOLCHAIN_STABLE }}
6265 uses : dtolnay/rust-toolchain@stable
6366 with :
64- toolchain : stable
67+ toolchain : ${{ env.TOOLCHAIN_STABLE }}
6568 targets : wasm32-unknown-unknown
6669 components : rustfmt, clippy, rust-src
6770 - uses : Swatinem/rust-cache@v2
@@ -75,24 +78,25 @@ jobs:
7578 - name : cargo clippy
7679 uses : actions-rs-plus/clippy-check@v2
7780 with :
78- toolchain : stable
81+ toolchain : ${{ env.TOOLCHAIN_STABLE }}
7982 args : --all-targets --all-features --locked --no-deps -- --deny warnings
8083
8184 test :
8285 strategy :
8386 matrix :
8487 os : [ubuntu-latest]
85- toolchain : [stable]
8688 runs-on : ${{ matrix.os }}
8789 env :
8890 RUSTFLAGS : " -Cdebug-assertions=y"
8991 steps :
9092 - uses : actions/checkout@v4
91- - name : Install Rust ${{ matrix.toolchain }}
93+ - name : Install Rust ${{ env.TOOLCHAIN_STABLE }}
9294 uses : dtolnay/rust-toolchain@stable
9395 with :
94- toolchain : ${{ matrix.toolchain }}
96+ toolchain : ${{ env.TOOLCHAIN_STABLE }}
9597 targets : wasm32-unknown-unknown
98+ - name : Set default toolchain
99+ run : rustup default ${{ env.TOOLCHAIN_STABLE }}
96100 - uses : Swatinem/rust-cache@v2
97101 - name : Install Protoc
98102 uses : arduino/setup-protoc@v1
0 commit comments