From 78c2f0a0f2469d033df3cae032261df427a2c7f7 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 19 Feb 2024 00:15:05 +0100 Subject: [PATCH] Configure rust-cache --- .github/workflows/clippy.yml | 1 + .github/workflows/docs.yml | 2 +- .github/workflows/rustfmt.yml | 1 + .github/workflows/tests.yml | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index fa1553cec5..e25e44e86e 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -12,5 +12,6 @@ jobs: with: toolchain: stable components: clippy, rustfmt + - uses: Swatinem/rust-cache@v2 - name: Run clippy run: make lint diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f1f5c63f26..4d89b67108 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout main uses: actions/checkout@v2 - + - uses: Swatinem/rust-cache@v2 - name: Deploy docs uses: mhausenblas/mkdocs-deploy-gh-pages@master if: github.repository == 'mitsuhiko/rye' diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index c4ff054695..7541e24dfe 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -12,5 +12,6 @@ jobs: with: toolchain: stable components: clippy, rustfmt + - uses: Swatinem/rust-cache@v2 - name: Run rustfmt run: make format-check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7ef06700b2..6fe9383c3f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,6 +12,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: stable + - uses: Swatinem/rust-cache@v2 - name: Check run: make check - name: Test @@ -26,6 +27,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: stable + - uses: Swatinem/rust-cache@v2 - name: Check run: make check - name: Test @@ -40,6 +42,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: stable + - uses: Swatinem/rust-cache@v2 - name: Check run: make check - name: Test