-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI by installing cargo-hack by binary (#43)
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: Testing | ||
|
||
on: | ||
# TODO: Make sure to change these if your still using "master" for the name of your main branch. | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
@@ -41,16 +40,18 @@ jobs: | |
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
# rust-cache already handles all the sane defaults for caching rust builds. | ||
# However because we are running separate debug/release builds in parallel, | ||
# we also need to add Debug or Release to the key so that a separate cache is used. | ||
# Otherwise only the last build to finish would get saved to the cache. | ||
key: ${{ matrix.name }} | ||
- name: Install cargo-hack | ||
run: cargo install cargo-hack --version 0.5.8 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
- name: Check `cargo fmt` was run | ||
run: cargo fmt --all -- --check | ||
# If your library does not support running under every possible combination of features, | ||
|