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: