Skip to content
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

Add caching to CI #418

Merged
merged 2 commits into from
Apr 8, 2023
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
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo build --no-default-features
- run: cargo test --no-default-features

Expand Down Expand Up @@ -60,6 +61,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo build --no-default-features --features std
- run: cargo test --no-default-features --features std

Expand All @@ -68,11 +70,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo fmt --all -- --check

clippy:
Expand All @@ -84,6 +86,7 @@ jobs:
with:
toolchain: nightly
components: clippy
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo +nightly clippy --workspace -- -D warnings

doc:
Expand All @@ -95,6 +98,7 @@ jobs:
with:
toolchain: stable
components: clippy
- uses: Leafwing-Studios/cargo-cache@v1
- run: cargo doc
env:
RUSTDOCFLAGS: "-D warnings"
Expand Down