Files
gemini-cli/.github/workflows
gemini-cli[bot] 6342ac2062 # Actions Cost Reduction: CI Matrix Optimization
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.
2026-05-06 01:00:12 +00:00
..
2026-04-07 16:44:07 +00:00