From 7897484b4bb903e3271d6b2020f67854fd04eacd Mon Sep 17 00:00:00 2001 From: CoreOS Bot Date: Tue, 30 May 2023 20:58:11 +0000 Subject: [PATCH] =?UTF-8?q?Sync=20repo=20templates=20=E2=9A=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sync with coreos/repo-templates@2e7a1b1e64d836647ccd200e73dbfe64d4ab0de8. --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d4053f5d..171f1b09 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -31,6 +31,8 @@ jobs: uses: dtolnay/rust-toolchain@v1 with: toolchain: stable + - name: Cache build artifacts + uses: Swatinem/rust-cache@v2 - name: cargo build run: cargo build - name: cargo test @@ -45,6 +47,8 @@ jobs: uses: dtolnay/rust-toolchain@v1 with: toolchain: stable + - name: Cache build artifacts + uses: Swatinem/rust-cache@v2 - name: cargo build (release) run: cargo build --release - name: cargo test (release) @@ -65,6 +69,8 @@ jobs: uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ env.MSRV }} + - name: Cache build artifacts + uses: Swatinem/rust-cache@v2 - name: cargo build (release) run: cargo build --release - name: cargo test (release) @@ -80,6 +86,8 @@ jobs: with: toolchain: ${{ env.ACTIONS_LINTS_TOOLCHAIN }} components: rustfmt, clippy + - name: Cache build artifacts + uses: Swatinem/rust-cache@v2 - name: cargo fmt (check) run: cargo fmt -- --check -l - name: cargo clippy (warnings) @@ -98,6 +106,8 @@ jobs: uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.channel }} + - name: Cache build artifacts + uses: Swatinem/rust-cache@v2 - name: cargo build run: cargo build - name: cargo test