ci: Migrate to detect-versions with namespaced cache keys #1063

Merged
tcpipuk merged 3 commits from tom/detect-versions into main 2025-09-23 03:34:28 +00:00

3 commits

Author SHA1 Message Date
8959ac06ac ci: Split Rust build cache into dependencies and incremental caches
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prek / Pre-commit & Formatting (pull_request) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
Release Docker Image / Build linux-amd64 (release) (pull_request) Has been cancelled
Release Docker Image / Build linux-arm64 (release) (pull_request) Has been cancelled
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Has been cancelled
Release Docker Image / Create Max-Perf Manifest (pull_request) Has been cancelled
Maintenance / Renovate / Renovate (push) Successful in 8m17s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 9m5s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 9m8s
Documentation / Build and Deploy Documentation (push) Successful in 51s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 28s
Release Docker Image / Build linux-arm64 (max-perf) (push) Successful in 19m16s
Release Docker Image / Build linux-amd64 (max-perf) (push) Successful in 19m21s
Release Docker Image / Create Max-Perf Manifest (push) Successful in 20s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m17s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 8m45s
Replace single large build cache with separate dependencies and incremental
caches. Dependencies cache survives source code changes and uses tiered
restore keys. Removes build directory from caching to improve CI performance
while maintaining effective compilation caching with sccache.
2025-09-23 04:30:35 +01:00
47f7ebfd68 fix: Use node_version in npm cache key for wrangler installation
Replace hashFiles('**/package-lock.json') with node_version since wrangler
is installed via npm without a lockfile to hash. Removes trailing dash from
cache keys and ensures npm dependencies are regenerated when Node.js version
changes.
2025-09-23 04:30:35 +01:00
7d91f218b1 ci: Migrate to detect-versions with namespaced cache keys
Replace local detect-runner-os action with external detect-versions@v1 to
reduce custom action maintenance. Add architecture detection for future
cross-platform support and namespace all cache keys with "continuwuity-"
prefix to prevent collisions with other projects on shared runners.

Updates cache mount IDs in Dockerfiles to match the new namespacing
convention, ensuring consistent cache isolation across CI and Docker builds.
2025-09-23 04:30:22 +01:00