install and use stable toolchain for cargo-hack installation

This commit is contained in:
Felix Prillwitz 2024-12-17 16:40:52 +01:00
parent 2a6d7545ca
commit 49a0c09498
No known key found for this signature in database
GPG key ID: DE334B43606D1455

View file

@ -174,6 +174,10 @@ jobs:
- name: Install NASM
uses: ilammy/setup-nasm@v1.5.1
- name: Install stable toolchain for cargo-hack
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain stable -y
if: ${{ matrix.toolchain != 'stable' }}
- name: Install toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
@ -196,7 +200,7 @@ jobs:
- run: cargo build --frozen --workspace --examples
- run: cargo test --workspace
- run: cargo install cargo-hack
- run: cargo +stable install cargo-hack
- run: cargo hack --workspace --remove-dev-deps
- run: cargo check --no-default-features
- run: cargo check