Use old cargo-hack for 1.57.0 CI

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-11-11 07:47:41 +09:00
parent bb36e2a072
commit 1ca2e81408
No known key found for this signature in database
1 changed files with 7 additions and 4 deletions

View File

@ -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