You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: optimize CI cache usage and add fast lint gate
This PR addresses cache storage approaching its 10GB limit by:
1. Cache optimization (saves ~2+ GB):
- Remove Java version from cargo cache key (Rust target is JDK-independent)
- Use actions/cache/restore + actions/cache/save pattern
- Only save cache on main branch, not on PRs
2. Reduce Rust test matrix:
- Consolidate from 2 jobs (Java 11 + Java 17) to 1 job (Java 17)
- Rust code is JDK-independent, so no coverage lost
3. Add fast lint gate (~30 seconds):
- New lint job runs cargo fmt --check before expensive builds
- build-native and linux-test-rust depend on lint passing
- Fail fast on formatting errors instead of waiting 5-10 minutes
- macOS lint runs on ubuntu-latest for cost efficiency
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments