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

ci: merge clang-format and clang-tidy into single pipeline #14798

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

DonIsaac
Copy link
Contributor

What does this PR do?

Merges clang-format and clang-tidy into a single workflow/job called clang

Why?

clang-format and clang-tidy take roughly a minute each. Most of that time is spent on setup, primarily on LLVM installation. Additionally, both use the same exact environment variables and steps (except for the format vs tidy part). Merging these together will reduce GH actions CI time spent. Not by much mind you, but if this runs on each PR it could be worth it.

Risks & Alternatives

If we merge this PR, we need to update main's branch protections to use clang, then remove clang-format and clang-tidy as required workflows.

If we like having these separate for viewing/comprehension reasons, we could combine these workflows into one but use separate jobs. This negates CI waste benefits and is more of a style preference.

@Electroid
Copy link
Contributor

Thanks for contributing this! Looks good, I’ll update the branch protection settings

@Electroid Electroid merged commit 0e4006e into oven-sh:main Oct 24, 2024
3 of 4 checks passed
nektro added a commit that referenced this pull request Oct 25, 2024
@DonIsaac DonIsaac deleted the don/ci/merge-clang-jobs branch October 25, 2024 13:54
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.

2 participants