Skip to content

Commit

Permalink
100% of CI Jobs for Complex PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen authored Jan 8, 2025
1 parent fabf4a5 commit 47ca97e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,14 @@ jobs:
# If Not a Simple PR: Build all targets
if [[ "$quit" == "1" ]]; then
# If PR was Created or Modified: Exclude some boards
# If PR was Created or Modified: Include all boards
pr=${{github.event.pull_request.number}}
if [[ "$pr" != "" ]]; then
echo "Excluding arm-0[1249], arm-1[124-9], risc-v-04..06, sim-03, xtensa-02"
echo "Include all boards"
boards=$(
echo '${{ inputs.boards }}' |
jq --compact-output \
'map(
select(
test("arm-0[1249]") == false and test("arm-1[124-9]") == false and
test("risc-v-0[4-9]") == false and
test("sim-0[3-9]") == false and
test("xtensa-0[2-9]") == false
)
)'
'.'
)
fi
echo "selected_builds=$boards" | tee -a $GITHUB_OUTPUT
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ jobs:
# Determine the repo and leave that unset to use the normal checkout behavior
# of using the merge commit instead of HEAD
case $GITHUB_REPOSITORY in
"apache/nuttx")
"lupyuen5/label-nuttx")
# OS
echo "Triggered by change in OS"
APPS_REF=$REF_NAME
;;
"apache/nuttx-apps" )
"lupyuen5/label-nuttx-apps" )
# APPS
OS_REF=$REF_NAME
echo "Triggered by change in APPS"
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Checkout nuttx repo
uses: actions/checkout@v4
with:
repository: apache/nuttx
repository: lupyuen5/label-nuttx
ref: ${{ steps.gittargets.outputs.os_ref }}
path: sources/nuttx
fetch-depth: 1
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Checkout apps repo
uses: actions/checkout@v4
with:
repository: apache/nuttx-apps
repository: lupyuen5/label-nuttx-apps
ref: ${{ steps.gittargets.outputs.apps_ref }}
path: sources/apps
fetch-depth: 1
Expand All @@ -118,7 +118,7 @@ jobs:

# Select the Linux Builds based on PR Arch Label
Linux-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
uses: lupyuen5/label-nuttx/.github/workflows/arch.yml@master
needs: Fetch-Source
with:
os: Linux
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:

# Select the macOS Builds based on PR Arch Label
macOS-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
uses: lupyuen5/label-nuttx/.github/workflows/arch.yml@master
needs: Fetch-Source
with:
os: macOS
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:

# Select the msys2 Builds based on PR Arch Label
msys2-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
uses: lupyuen5/label-nuttx/.github/workflows/arch.yml@master
needs: Fetch-Source
with:
os: msys2
Expand Down Expand Up @@ -339,7 +339,7 @@ jobs:

# Select the msvc Builds based on PR Arch Label
msvc-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
uses: lupyuen5/label-nuttx/.github/workflows/arch.yml@master
needs: Fetch-Source
with:
os: msvc
Expand Down

0 comments on commit 47ca97e

Please sign in to comment.