CI: Unify build jobs with reusable workflows #583
Merged
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.
Instead of having individual workflow runs for every git operation, we can instead make them 'reusable' and then bundle all of them into a single, central workflow (which we will call
CI
).Having them unified into a single workflow like that has several advantages:
Build jobs will only run if the
Code Linting
workflow passes first: Previously, build jobs would run in parallel with the linting workflow, which is probably undesired.Build artifacts for every OS will be all in the same job.
This makes release automation much easier, which I intend to do next.
Finally, if for some reason we want to run a specific workflow individually (instead of running of all them), I've kept the
workflow_dispatch
option in each workflow, so we can always dispatch them manually.