Repository navigation
CI: Refactor the Build Rules based on Arch Labels - #13858
Merged
Merged
Conversation
|
[Experimental Bot, please feedback here] The PR summary is well-written and informative, but there are a few missing pieces to fully meet the NuttX requirements. Here's a breakdown: Strengths:
Areas for Improvement:
Concise Feedback: This PR is well on its way to meeting the NuttX requirements. The summary is clear and informative, and the testing is comprehensive. However, it needs to explicitly address the impact on the build process and include snippets of relevant testing logs to be fully compliant. |
1 task done
This PR continues to enhance the CI Workflow, to skip the unnecessary NuttX Builds. The changes in this PR will not take effect until the next PR, which will switch `build.yml` to use the rules in this PR. In this PR, we refactor the CI Build Rules into a separate Reusable Workflow `arch.yml`. The original rules were migrated to `arch.yml`: - We target only the Simple PRs: One Arch Label + One Size Label (e.g. "Arch: risc-v, Size: XS") - For "Arch: risc-v": Build `risc-v-01`, `risc-v-02` - For "Arch: xtensa": Build `xtensa-01`, `xtensa-02` - The above rules apply when the PR is Created or Modified - When the PR is Merged: All targets shall be built New and Updated Rules: - For "Arch: arm": Build `arm-01`, `arm-02`, ... - For "Arch: arm64": Build `other` - For "Arch: simulator": Build `sim-01`, `sim-02` - For "Arch: x86_64": Build `other` - For Simple PRs (One Arch Label + One Size Label): Skip the macOS and Windows builds (`macos`, `macos/sim-*`, `msys2`) since these builds are costly and slow - Except for "Arch: Simulator", which will enable the macOS Builds for `sim-01` and `sim-02` - If GitHub CLI Fails: Build all targets The code is explained here: apache#13775
xiaoxiang781216
approved these changes
Oct 7, 2024
lupyuen
added a commit
to lupyuen2/wip-nuttx-apps
that referenced
this pull request
Oct 8, 2024
This PR syncs the Build Rules from `nuttx` to `nuttx-apps` repo. The Build Rules were added to `nuttx` repo here: apache/nuttx#13858
xiaoxiang781216
pushed a commit
to apache/nuttx-apps
that referenced
this pull request
Oct 8, 2024
This PR syncs the Build Rules from `nuttx` to `nuttx-apps` repo. The Build Rules were added to `nuttx` repo here: apache/nuttx#13858
crafcat7
pushed a commit
to crafcat7/vela-nuttx-apps
that referenced
this pull request
Jul 14, 2026
This PR syncs the Build Rules from `nuttx` to `nuttx-apps` repo. The Build Rules were added to `nuttx` repo here: apache/nuttx#13858
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 continues to enhance the CI Workflow, to skip the unnecessary NuttX Builds. The changes in this PR will not take effect until the next PR, which will switch
build.ymlto use the rules in this PR.In this PR, we refactor the CI Build Rules into a separate Reusable Workflow
arch.yml. The original rules were migrated toarch.yml:risc-v-01,risc-v-02xtensa-01,xtensa-02New and Updated Rules:
arm-01,arm-02, ...othersim-01,sim-02othermacos,macos/sim-*,msys2) since these builds are costly and slowsim-01andsim-02The code is explained here: #13775
Impact
The changes in this PR will not take effect until the next PR, which will switch
build.ymlto use the rules in this PR.Testing
We tested with the upcoming version of
build.yml. When we create a PR, the irrelevant builds are totally omitted. (Merge PR will compile all targets, same for Others)Previously the irrelevant builds were skipped in seconds. Now the irrelevant builds (e.g.
arm-01) are totally omitted for Simple PRs (e.g. "Arch: risc-v")