mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-22 20:23:12 +00:00
ci: add caching to more jobs (#563)
More usage of the caching action to CI/deploy. Seems to save ~3-4 minutes on CI, not sure about deploy.
This commit is contained in:
parent
758dfd2ee5
commit
d1e672f263
3 changed files with 9 additions and 0 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -42,6 +42,9 @@ jobs:
|
|||
toolchain: stable
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
# Check clippy. Note that this doesn't check ARM.
|
||||
|
@ -64,6 +67,8 @@ jobs:
|
|||
override: true
|
||||
components: clippy
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
# TODO: Can probably put cache here in the future; I'm worried if this will cause issues with clippy though since cargo check breaks it; maybe wait until 1.52, when fix lands.
|
||||
|
||||
- run: cargo clippy --all-targets --workspace -- -D warnings
|
||||
|
|
2
.github/workflows/deployment.yml
vendored
2
.github/workflows/deployment.yml
vendored
|
@ -187,6 +187,8 @@ jobs:
|
|||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
|
@ -187,6 +187,8 @@ jobs:
|
|||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue