Try using a cache
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 1m25s
Cargo CI / Lint (pull_request) Successful in 44s

This commit is contained in:
Wojciech Kozlowski 2024-01-06 14:17:27 +01:00
parent 0c6812f40c
commit 4f5873f49b

View File

@ -15,13 +15,27 @@ jobs:
container: docker.io/drrobot/musichoard-ci:rust-1.75
steps:
- uses: actions/checkout@v3
- uses: actions/cache/restore@v3
with:
path: target
key: cargo-target
- run: cargo build --verbose --all-features --all-targets
- run: cargo test --verbose --all-features --all-targets --no-fail-fast
- uses: actions/cache/save@v3
with:
path: target
key: cargo-target
lint:
name: Lint
container: docker.io/drrobot/musichoard-ci:rust-1.75
steps:
- uses: actions/checkout@v3
- uses: actions/cache/restore@v3
with:
path: target
key: cargo-target
- run: cargo clippy --verbose --all-features --all-targets -- -D warnings
- run: cargo fmt --verbose -- --check