ci: optimize GitHub Actions to reduce costs (~$18-20/mo savings)#62
Merged
SomethingNew71 merged 1 commit intomainfrom Apr 13, 2026
Merged
ci: optimize GitHub Actions to reduce costs (~$18-20/mo savings)#62SomethingNew71 merged 1 commit intomainfrom
SomethingNew71 merged 1 commit intomainfrom
Conversation
- Remove cross-platform (macOS/Windows) matrix from CI test and build jobs - Keep tests/lint/docs running on ubuntu-only (release.yml still builds all platforms) - Remove redundant build job entirely from CI (release workflow handles real builds) - Add concurrency group to cancel superseded runs - Remove duplicate cargo registry cache (rust-cache already handles this) - Removes push trigger on master (only main needed) Estimated monthly savings: ~$18-20 (eliminates 10x-cost macOS and 2x-cost Windows CI runners) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
testandbuildjobs — these now run on Ubuntu onlybuildjob from CI (therelease.ymlworkflow already handles cross-platform release builds when you tag)concurrencygroup withcancel-in-progressto prevent piling up redundant runsmasterbranch (onlymainis used)Why this matters
macOS runners cost 10x Linux, Windows costs 2x. Running test+build on all 3 platforms for every push/PR was the #1 cost driver at $22.14/mo. The release workflow still builds all platforms when you push a tag.
What's preserved
release.ymlSwatinem/rust-cachestill activeEstimated savings
~$18-20/month (from $22.14 down to ~$2-4)
Test plan
release.ymlstill works on next tag push🤖 Generated with Claude Code