Skip to content

Use caching to speed up CI #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache
uses: Swatinem/[email protected]
- name: Format
run: cargo fmt --check

Expand All @@ -29,6 +31,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cache
uses: Swatinem/[email protected]
- name: Check
run: cargo check

Expand All @@ -39,6 +43,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache
uses: Swatinem/[email protected]
- name: Run clippy
run: cargo clippy --all-features -- -D warnings

Expand All @@ -53,6 +59,8 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Cache
uses: Swatinem/[email protected]
- name: Build
run: cargo build --all-features

Expand All @@ -61,6 +69,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cache
uses: Swatinem/[email protected]
- name: Compile benchmarks, but do not run them
# There are no benchmarks with "nothing" in their name, hence this command only compiles the benchmarks but does not run them.
run: cargo bench --all-features nothing
Loading