From bada79ba4a63cf5605885bf0eebd6b28e91ce94d Mon Sep 17 00:00:00 2001 From: Vlad Frolov Date: Fri, 13 Feb 2026 00:17:43 +0100 Subject: [PATCH] ci: Enabled builds caching during CI/CD --- .github/workflows/code_style.yml | 3 ++- .github/workflows/release-plz.yml | 2 ++ .github/workflows/test.yml | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml index c013e031..19f7d725 100644 --- a/.github/workflows/code_style.yml +++ b/.github/workflows/code_style.yml @@ -8,12 +8,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: profile: minimal components: rustfmt, clippy + - uses: Swatinem/rust-cache@v2 - name: Check formatting run: | cargo fmt --all -- --check diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index ff352c91..142b2b20 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -24,6 +24,7 @@ jobs: - &install-rust name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 # Generating a GitHub token, so that PRs and tags created by # the release-plz-action can trigger actions workflows. - name: Generate GitHub token @@ -56,6 +57,7 @@ jobs: steps: - *checkout - *install-rust + - uses: Swatinem/rust-cache@v2 - name: Run release-plz uses: release-plz/action@v0.5 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e5d624f..13fc8410 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,10 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: profile: minimal + - uses: Swatinem/rust-cache@v2 - name: Run Tests run: cargo test --all-features -- --nocapture