Skip to content

Commit d1e5c50

Browse files
committed
Use latest stable version for CI 'build' job (#5672)
# Objective Fixes #5668. The Rust version used in the CI `build` step previously depended on the default Rust version defined by GitHub in the Ubuntu image: <https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md#rust-tools> This currently doesn't allow us to use Rust 1.63 features until this version is updated. ## Solution We now use the `actions-rs/toolchain@v1` action to always use the latest stable Rust version. This is already used for other CI jobs that we have.
1 parent 0e46b04 commit d1e5c50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
~/.cargo/git/db/
2929
target/
3030
key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
override: true
3135
- name: Install alsa and udev
3236
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
3337
if: runner.os == 'linux'

0 commit comments

Comments
 (0)