Skip to content

Commit

Permalink
chore: add caching setup for CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenny committed Nov 12, 2024
1 parent d88e0bc commit c1d2f6a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ jobs:
with:
components: clippy

- name: Set up cache
uses: Swatinem/rust-cache@v2

- name: Run clippy
run: cargo +nightly clippy

Expand All @@ -104,6 +107,9 @@ jobs:
with:
components: rustfmt

- name: Set up cache
uses: Swatinem/rust-cache@v2

- name: Run rustfmt
run: cargo +nightly fmt --all -- --check

Expand All @@ -118,6 +124,9 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Set up cache
uses: Swatinem/rust-cache@v2

- name: Run build
run: cargo build

Expand All @@ -136,5 +145,8 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Set up cache
uses: Swatinem/rust-cache@v2

- name: Run check
run: cargo check --examples

0 comments on commit c1d2f6a

Please sign in to comment.