Skip to content

Commit 25613f5

Browse files
committed
Install Cargo-hack using install-action
Cargo hack uses a newer Rust version than our MSRV, so manually installing it is becoming a pain.
1 parent 656ef9f commit 25613f5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/main.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
- name: Install Rust (rustup)
4141
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
4242
shell: bash
43-
- name: Install cargo-hack
44-
run: cargo install cargo-hack
43+
- uses: taiki-e/install-action@cargo-hack
4544
- name: Run tests
4645
run: cargo hack test --feature-powerset && cargo hack test --feature-powerset --release
4746

@@ -68,8 +67,7 @@ jobs:
6867
- uses: actions/checkout@master
6968
- name: Install Rust
7069
run: rustup update stable && rustup default stable
71-
- name: Install cargo-hack
72-
run: cargo install cargo-hack
70+
- uses: taiki-e/install-action@cargo-hack
7371
- name: Install Target
7472
run: rustup target add ${{ matrix.target }}
7573
- name: Run check
@@ -87,8 +85,7 @@ jobs:
8785
- uses: actions/checkout@master
8886
- name: Install Rust nightly
8987
run: rustup update nightly && rustup default nightly
90-
- name: Install cargo-hack
91-
run: cargo install cargo-hack
88+
- uses: taiki-e/install-action@cargo-hack
9289
- name: Install Target
9390
run: rustup target add ${{ matrix.target }}
9491
- name: Run check

0 commit comments

Comments
 (0)