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:
Clement Tsang 2021-07-27 18:59:17 -04:00 committed by GitHub
parent 758dfd2ee5
commit d1e672f263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -187,6 +187,8 @@ jobs:
override: true
target: ${{ matrix.triple.target }}
- uses: Swatinem/rust-cache@v1
- name: Build
uses: actions-rs/cargo@v1
with:

View file

@ -187,6 +187,8 @@ jobs:
override: true
target: ${{ matrix.triple.target }}
- uses: Swatinem/rust-cache@v1
- name: Build
uses: actions-rs/cargo@v1
with: