Skip to content

Commit 3d76979

Browse files
ErichDonGublerjimblandy
authored andcommitted
build(ci): use RUST_VERSION for CTS consistently
1 parent 4a97972 commit 3d76979

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,13 @@ jobs:
327327
- name: checkout repo
328328
uses: actions/checkout@v3
329329

330-
- name: install rust
330+
- name: install rust ${{ env.RUST_VERSION }}
331331
uses: actions-rs/toolchain@v1
332332
with:
333333
profile: minimal
334334
toolchain: ${{ env.RUST_VERSION }}
335+
override: true
336+
components: clippy
335337

336338
- name: disable debug
337339
shell: bash

.github/workflows/cts.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
RUST_BACKTRACE: 1
12+
RUST_VERSION: 1.64
1213

1314
jobs:
1415
cts:
@@ -46,12 +47,13 @@ jobs:
4647
cd cts
4748
git checkout $(cat ../wgpu/cts_runner/revision.txt)
4849
49-
- name: install rust
50+
- name: install rust ${{ env.RUST_VERSION }}
5051
uses: actions-rs/toolchain@v1
5152
with:
52-
toolchain: stable
53+
toolchain: ${{ env.RUST_VERSION }}
5354
target: ${{ matrix.target }}
5455
profile: minimal
56+
override: true
5557

5658
- name: caching
5759
uses: Swatinem/rust-cache@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For an overview of all the components in the gfx-rs ecosystem, see [the big pict
3232
### MSRV policy
3333

3434
Minimum Supported Rust Version is **1.64**.
35-
It is enforced on CI (in "/.github/workflows/ci.yml") with `RUST_VERSION` variable.
35+
It is enforced on CI (in "/.github/workflows/ci.yml", "/.github/workflows/cts.yml") with `RUST_VERSION` variable.
3636
This version can only be upgraded in breaking releases.
3737

3838
## Getting Started

0 commit comments

Comments
 (0)