Skip to content

ci: optimize GitHub Actions to reduce costs (~$18-20/mo savings)#62

Merged
SomethingNew71 merged 1 commit intomainfrom
optimize/github-actions-costs
Apr 13, 2026
Merged

ci: optimize GitHub Actions to reduce costs (~$18-20/mo savings)#62
SomethingNew71 merged 1 commit intomainfrom
optimize/github-actions-costs

Conversation

@SomethingNew71
Copy link
Copy Markdown
Collaborator

Summary

  • Removed cross-platform matrix (macOS + Windows) from CI test and build jobs — these now run on Ubuntu only
  • Removed the entire build job from CI (the release.yml workflow already handles cross-platform release builds when you tag)
  • Added concurrency group with cancel-in-progress to prevent piling up redundant runs
  • Removed duplicate cargo registry cache entries (Swatinem/rust-cache already handles this)
  • Removed push trigger on master branch (only main is 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

  • Format check, Clippy lint, tests, and docs all still run on every push/PR
  • Cross-platform release builds (macOS Intel, macOS ARM, Windows, Linux) unchanged in release.yml
  • Rust caching via Swatinem/rust-cache still active

Estimated savings

~$18-20/month (from $22.14 down to ~$2-4)

Test plan

  • Verify CI passes on this PR (ubuntu-only jobs)
  • Verify release.yml still works on next tag push

🤖 Generated with Claude Code

- 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>
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@SomethingNew71 SomethingNew71 merged commit 0a8808e into main Apr 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant