Skip to content

Commit

Permalink
CI: Skip jobs arm-08 to arm-14 when a Complex PR is created / updated
Browse files Browse the repository at this point in the history
When we submit or update a Complex PR that affects All Architectures (Arm, RISC-V, Xtensa, etc): CI Workflow shall run only half the jobs. Previously CI Workflow will run `arm-01` to `arm-14`, now we will run only `arm-01` to `arm-07`.

When the Complex PR is Merged: CI Workflow will still run all jobs `arm-01` to `arm-14`

Simple PRs with One Single Arch / Board will build the same way as before: `arm-01` to `arm-14`

This is explained here: apache/nuttx#14376

Note that this version of `arch.yml` has diverged from `nuttx` repo, since we are unable to merge apache/nuttx#14377
  • Loading branch information
lupyuen authored and cederom committed Oct 18, 2024
1 parent f426265 commit 0a4170d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ jobs:
# If Not a Simple PR: Build all targets
if [[ "$quit" == "1" ]]; then
# If PR was Created or Modified: Exclude arm-08 to arm-14
pr=${{github.event.pull_request.number}}
if [[ "$pr" != "" ]]; then
echo "Excluding arm-08 to arm-14"
boards=$(
echo '${{ inputs.boards }}' |
jq --compact-output 'map(select(test("arm-0[8-9]") == false and test("arm-1.+") == false))'
)
fi
echo "selected_builds=$boards" | tee -a $GITHUB_OUTPUT
exit
fi
Expand Down

0 comments on commit 0a4170d

Please sign in to comment.