Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CI): Optimize Github CI workflows #526

Merged
merged 1 commit into from Dec 6, 2022
Merged

fix(CI): Optimize Github CI workflows #526

merged 1 commit into from Dec 6, 2022

Conversation

h3nill
Copy link
Member

@h3nill h3nill commented Dec 6, 2022

Instead of running a different job for each combination of os and feature flag (i.e. 24 jobs in total). It is changed so it run all the feature flag tests in the same job using cargo-hack (i.e. 3 jobs in total). Also use rust-cache to cache builds of dependencies.

Current runtime of CI could take anywhere from 45-60 mins. Optimized flow take around 25-30 min depending on if things are cached or not. This can be optimized further by removing things like doc tests and moving those to workflow of main branch because currently there are not alot of changes in doc tests and its something that can be fixed easily after PR is merged. But will do a separate PR for that.

Note: This workflow tests for more feature flags then previously tested.

Test run here: https://github.com/henil/rumqtt/actions
image

@tekjar tekjar merged commit 20e33a5 into main Dec 6, 2022
@h3nill h3nill deleted the optimize-ci branch January 2, 2023 06:36
carlocorradini pushed a commit to carlocorradini/rumqtt that referenced this pull request Aug 3, 2023
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.

None yet

3 participants