Skip to content

Commit

Permalink
ci: add rust-cache to pull request workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Oct 25, 2023
1 parent 9a5ff66 commit 00df892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt-get install libasound2-dev
- uses: Swatinem/rust-cache@v2
- run: cargo check

fmt:
Expand All @@ -26,6 +27,7 @@ jobs:
with:
components: rustfmt
- run: sudo apt-get install libasound2-dev
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check

clippy:
Expand All @@ -37,4 +39,5 @@ jobs:
with:
components: clippy
- run: sudo apt-get install libasound2-dev
- uses: Swatinem/rust-cache@v2
- run: cargo clippy -- -D warnings

0 comments on commit 00df892

Please sign in to comment.