Skip to content

Commit 0ef1f08

Browse files
authored
chore: address cargo-semver-checks run time
This PR improves the `semver-checks` CI job by introducing caching to speed up executions and removing the explicit `cargo semver-checks` invocation, as it is already handled by the action by default. The initial run with a cold cache is expected to take approximately 23 minutes, which is unchanged from the current execution time as the cache is being populated, subsequent runs with a warm cache are expected to complete in approximately 3–6 minutes which reduces the job execution time by approximately 74–87% for cached runs. Pull-Request: #6437.
1 parent d42320c commit 0ef1f08

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,10 @@ jobs:
303303
RUSTFLAGS: ''
304304
steps:
305305
- uses: actions/checkout@v5
306+
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
307+
with:
308+
shared-key: semver
306309
- uses: obi1kenobi/cargo-semver-checks-action@v2
307-
- run: cargo semver-checks
308310

309311
rustfmt:
310312
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)