ci: optimize CI speed with parallel builds, caching, and uv#766
Merged
ci: optimize CI speed with parallel builds, caching, and uv#766
Conversation
- Run builds in parallel with lint (remove test dependency) - Consolidate to 3 platforms: ubuntu-latest, macos-26, windows-latest - Use golangci-lint-action with built-in caching - Cache actionlint binary to avoid repeated installs - Add setup-node with npm cache in lint job - Replace pip with uv (10-100x faster) via astral-sh/setup-uv - Parallelize Python and Node dependency installation in test job Expected improvement: ~10-12 min → ~5-7 min per PR Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove npm cache from lint job (no lockfile in repo) - Add python-version to setup-uv so uv can find Python Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Pin golangci-lint to v1.64.8 (v2.x has stricter checks) - Use uv tool install instead of uv pip install --system (uv tool install properly adds CLI tools to PATH) - Update Python to 3.13 Co-Authored-By: Claude Opus 4.5 <[email protected]>
- golangci-lint-action v7 requires golangci-lint v2.x, use v6.5.2 - Install crytic-compile instead of slither-analyzer (uv tool isolates each tool, slither doesn't expose crytic-compile) Co-Authored-By: Claude Opus 4.5 <[email protected]>
The test suite includes TestSlitherPrinter which requires the slither CLI. Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add cache for ~/.solc-select/artifacts to avoid re-downloading solc - Remove unused Python venv setup in Windows (now using uv tool install) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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
Expected Improvement
Test plan
🤖 Generated with Claude Code