Try using a cache
This commit is contained in:
parent
0c6812f40c
commit
4f5873f49b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user