Skip to content

Commit e9a2c06

Browse files
committed
Pin Rust 1.93.0 for polkadot-sdk builds
1 parent 98fe6df commit e9a2c06

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

.github/workflows/build-release-binaries.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build and Attach Binaries to Release
22

3+
env:
4+
TOOLCHAIN_STABLE: "1.93.0"
5+
36
on:
47
release:
58
types:
@@ -35,7 +38,7 @@ jobs:
3538
uses: actions-rs/toolchain@v1
3639
with:
3740
profile: minimal
38-
toolchain: stable
41+
toolchain: ${{ env.TOOLCHAIN_STABLE }}
3942
override: true
4043

4144
- name: Add apple target

.github/workflows/rust-checks.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ env:
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

1820
jobs:
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,23 +78,22 @@ 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
9698
- uses: Swatinem/rust-cache@v2
9799
- name: Install Protoc

.github/workflows/rust-docs.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Update rust docs
22

3+
env:
4+
TOOLCHAIN_STABLE: "1.93.0"
5+
36
on:
47
push:
58
branches:
@@ -27,10 +30,10 @@ jobs:
2730
- name: Install Rust Stable
2831
uses: dtolnay/rust-toolchain@stable
2932
with:
30-
toolchain: stable
33+
toolchain: ${{ env.TOOLCHAIN_STABLE }}
3134
targets: wasm32-unknown-unknown
3235
components: rust-src
33-
36+
3437
- name: Check if the README is up to date.
3538
run: |
3639
cargo install cargo-rdme --locked -q

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "stable"
2+
channel = "1.93.0"
33
components = [
44
"rust-src",
55
"rustc-dev",

0 commit comments

Comments
 (0)