This is an automated email from the ASF dual-hosted git repository.
cederom pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 7aa7bf70c1 CI: Skip jobs arm-08 to arm-14 when a Complex PR is created
/ updated
7aa7bf70c1 is described below
commit 7aa7bf70c1ade81bb2c60fbde2133fceb7449ab1
Author: Lup Yuen Lee <[email protected]>
AuthorDate: Thu Oct 17 23:37:41 2024 +0800
CI: Skip jobs arm-08 to arm-14 when a Complex PR is created / updated
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: https://github.com/apache/nuttx/issues/14376
Note that this version of `arch.yml` has diverged from `nuttx-apps`, since
we are unable to merge https://github.com/apache/nuttx/pull/14377
---
.github/workflows/arch.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml
index 7cdc0169d1..966765eefa 100644
--- a/.github/workflows/arch.yml
+++ b/.github/workflows/arch.yml
@@ -153,6 +153,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