From aafd2b5d86c4f02ea7578107cfa6da228f0091d8 Mon Sep 17 00:00:00 2001 From: Akrm Al-Hakimi Date: Fri, 24 Apr 2026 15:01:14 -0400 Subject: [PATCH] refactor: use `talk-e/install-action` for semver checks --- .github/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad16f537..ee97dde2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,18 +115,16 @@ jobs: - uses: dtolnay/rust-toolchain@stable - - uses: actions/cache@v5 + # Prebuilt binary (GitHub Releases + checksums); avoids compiling the tool every run. + - uses: taiki-e/install-action@v2 with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-semver-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-semver- + tool: cargo-semver-checks@0.47 + fallback: none - - name: Install cargo-semver-checks - run: cargo install cargo-semver-checks --locked + # Smarter cache than hand-rolled keys; pairs well with semver-checks rustdoc builds. + - uses: Swatinem/rust-cache@v2 + with: + shared-key: semver-checks - name: Check semver compatibility run: cargo semver-checks check-release -p nmrs