diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-07-27 18:59:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 18:59:17 -0400 |
commit | d1e672f26329a6483608ccd61a55f1e33f9662da (patch) | |
tree | 51e1bf78cefd422a134fda95def84e69a193e854 /.github | |
parent | 758dfd2ee55f68e6ec9c72ec2ea6eec936d4c591 (diff) |
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.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 5 | ||||
-rw-r--r-- | .github/workflows/deployment.yml | 2 | ||||
-rw-r--r-- | .github/workflows/nightly.yml | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a707c186..46f28cda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 98726cce..189041c8 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -187,6 +187,8 @@ jobs: override: true target: ${{ matrix.triple.target }} + - uses: Swatinem/rust-cache@v1 + - name: Build uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 09d97344..4c13af32 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -187,6 +187,8 @@ jobs: override: true target: ${{ matrix.triple.target }} + - uses: Swatinem/rust-cache@v1 + - name: Build uses: actions-rs/cargo@v1 with: |