From 49a0c09498b12e2c656d4821ae0394eeee6306bc Mon Sep 17 00:00:00 2001 From: Felix Prillwitz Date: Tue, 17 Dec 2024 16:40:52 +0100 Subject: [PATCH] install and use stable toolchain for cargo-hack installation --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41928ed5..c4df794f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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