Skip to content

ci(cache): key the Rust caches by the native dependencies - #1202

Merged
CassOnMars merged 1 commit into
QuilibriumNetwork:v2.1.0.25from
blacks1ne:ci/rust-cache-native-key
Nov 4, 2026
Merged

CassOnMars merged 1 commit into
QuilibriumNetwork:v2.1.0.25from
blacks1ne:ci/rust-cache-native-key

Conversation

@blacks1ne

Copy link
Copy Markdown
Contributor

rust-cache v2 ignores key when shared-key is set (src/config.ts: the shared key replaces the input key and the job key), so the native-… key on our Rust cache steps never took effect: a change to the native dependencies did not invalidate the Rust caches.

Fold the native cache key and the setup-native-deps hash into each shared-key and drop the dead key: lines. The test and lattice-native jobs keep identical keys, so they still share one cache.

Tests: workflow YAML parses; actionlint is clean. The new keys match no saved cache, so the first runs after merge build cold and the first push run saves fresh caches.

rust-cache v2 ignores the key input when shared-key is set, so a
native-deps change never invalidated the Rust caches. Fold the native
cache key and the setup action hash into each shared-key and drop the
dead key lines. The test and lattice-native jobs keep identical keys.
@blacks1ne
blacks1ne marked this pull request as ready for review November 4, 2026 08:59
@CassOnMars
CassOnMars added this pull request to the merge queue Nov 4, 2026
Merged via the queue into QuilibriumNetwork:v2.1.0.25 with commit 674ec0b Nov 4, 2026
12 checks passed
@blacks1ne
blacks1ne deleted the ci/rust-cache-native-key branch November 4, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants