build.yml: Skip the CI Builds that don't match the Arch Label #81
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
This PR proposes to enhance the CI Workflow, to skip the unnecessary NuttX Builds. Currently, NuttX Devs wait for the CI Builds to complete across All Architectures (Arm32, Arm64, RISC-V, Xtensa), even though they modified a Single Architecture. With this PR, the CI Workflow will build only the Modified Architecture.
The solution uses the Arch Labels for PRs. We target only the Simple PRs: One Arch Label + One Size Label (e.g. "Arch: risc-v, Size: XS")
other
,arm-01
,arm-02
, ...risc-v-01
,risc-v-02
xtensa-01
,xtensa-02
The code is explained here: apache#13775
Impact
For Simple PRs: CI Builds shall be skipped for the targets that don't match the Arch Label
For Complex PRs: No change, all targets shall be built
Testing
When we create a PR, the irrelevant builds are skipped in seconds. Click "Show All Jobs" to reveal the timings: (Merge PR will compile all targets, same for Others)