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