Skip to content

Commit

Permalink
Fix CI by installing cargo-hack by binary (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Apr 28, 2024
1 parent 3d59d2f commit 6c36057
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/testing.yml
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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6c36057

Please sign in to comment.