From 1ca2e81408838853aaae365a44314160fd9aa20f Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 11 Nov 2022 07:47:41 +0900 Subject: [PATCH] Use old cargo-hack for 1.57.0 CI Signed-off-by: Yuki Okushi --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5013ba1f..41ec1940 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,10 +68,13 @@ jobs: # uses: Swatinem/rust-cache@v1.2.0 - name: Install cargo-hack - uses: actions-rs/cargo@v1 - with: - command: install - args: cargo-hack + if: matrix.version != '1.57.0' + run: cargo install cargo-hack + + # newer cargo-hack versions require 1.60 or above + - name: Install cargo-hack (1.57.0) + if: matrix.version == '1.57.0' + run: cargo install cargo-hack --version=0.5.21 - name: Generate Cargo.lock uses: actions-rs/cargo@v1