ckb
ckb copied to clipboard
Enhance CI Workflow Efficiency
Feature Request
Is your feature request related to a problem? Please describe.
Our CI workflows are currently slow, and we'd like to propose a few improvements:
-
Push Events:
- Run only lint, unit, and integration tests on Ubuntu to speed up feedback.
-
Merge Group:
- Run the full suite (macOS, Windows, Ubuntu) for comprehensive checks.
-
Optimize Build Time:
- Make
ckb-testas a [bin] in theckbworkspace, letckb-test binandckb binshared same onetargetdir. - Build once in
make prodso thatmake integrationreuses the artifacts, reducing overall time.
- Make
-
Unify Dependency Versions:
- Use
cargo tree --duplicateto ensure each dependency version is used only once, reducing compilation redundancies.
- Use
-
Cache Build Target
- Use rust-sccache on CI https://github.com/marketplace/actions/rust-sccache
-
Increase Integration Test Concurrency
- https://github.com/eval-exec/ckb/blob/exec%2Ffix-ci/Makefile#L8 (
-c 4means that only 4 integration tests are allowed to run simultaneously, need to increase)
- https://github.com/eval-exec/ckb/blob/exec%2Ffix-ci/Makefile#L8 (
These changes will streamline our CI processes and reduce build times.
Describe the solution you'd like
Describe alternatives you've considered
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.