build(ci): use RUST_VERSION for CTS consistently

This commit is contained in:
Erich Gubler 2022-11-07 14:16:03 -05:00 committed by Jim Blandy
parent 4a9797276a
commit 3d76979da6
3 changed files with 8 additions and 4 deletions

View File

@ -327,11 +327,13 @@ jobs:
- name: checkout repo
uses: actions/checkout@v3
- name: install rust
- name: install rust ${{ env.RUST_VERSION }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: clippy
- name: disable debug
shell: bash

View File

@ -9,6 +9,7 @@ on:
env:
RUST_BACKTRACE: 1
RUST_VERSION: 1.64
jobs:
cts:
@ -46,12 +47,13 @@ jobs:
cd cts
git checkout $(cat ../wgpu/cts_runner/revision.txt)
- name: install rust
- name: install rust ${{ env.RUST_VERSION }}
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ env.RUST_VERSION }}
target: ${{ matrix.target }}
profile: minimal
override: true
- name: caching
uses: Swatinem/rust-cache@v1

View File

@ -32,7 +32,7 @@ For an overview of all the components in the gfx-rs ecosystem, see [the big pict
### MSRV policy
Minimum Supported Rust Version is **1.64**.
It is enforced on CI (in "/.github/workflows/ci.yml") with `RUST_VERSION` variable.
It is enforced on CI (in "/.github/workflows/ci.yml", "/.github/workflows/cts.yml") with `RUST_VERSION` variable.
This version can only be upgraded in breaking releases.
## Getting Started