mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 06:43:07 -07:00
6342ac2062
This PR focuses strictly on reducing GitHub Actions costs by optimizing the CI matrix, as requested.
### Summary of Changes
1. **CI Matrix Optimization**:
- **Linux**: Retained the full matrix of Node.js versions (20.x, 22.x, 24.x) with sharding (`cli`, `others`) to ensure robust coverage on the primary platform.
- **macOS**: Reduced to a single job running Node.js 20.x (the recommended version). This eliminates the matrix and sharding for Mac, significantly reducing the usage of expensive Mac runners.
- **Impact**: Expected to reduce Mac runner usage by approximately 83% (from 6 jobs per run to 1 job per run) while maintaining core cross-platform compatibility checks.
2. **Scope Refinement**:
- Reverted unrelated changes to policy engines, documentation, and tests that were inadvertently included in previous iterations of this branch.
- Confirmed that optimizations in `gemini-cli-bot-pulse.yml` and `gemini-cli-bot-brain.yml` have been fully reverted to their baseline state.
### Data-Driven Justification
- **Mac Runner Cost**: macOS runners are significantly more expensive than Linux runners. By consolidating Mac testing into a single job for the recommended Node.js version, we maintain essential platform verification while minimizing cost.
- **Linux Matrix**: Moving the heavier matrix testing (multiple Node versions) to Linux leverages more cost-effective runners without sacrificing compatibility verification.