Skip to content

Commit

Permalink
Change apache/nuttx to lupyuen5/label-nuttx. Enable macOS Builds. Bui…
Browse files Browse the repository at this point in the history
…ld on Push. Set "fail-fast: false"
  • Loading branch information
lupyuen authored Nov 21, 2024
1 parent d16de91 commit cc531e7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ jobs:
run: |
# Skip all macOS Builds
if [[ "${{ inputs.os }}" == "macOS" ]]; then
echo "Skipping all macOS Builds"
echo "skip_all_builds=1" | tee -a $GITHUB_OUTPUT
exit
fi
#### if [[ "${{ inputs.os }}" == "macOS" ]]; then
#### echo "Skipping all macOS Builds"
#### echo "skip_all_builds=1" | tee -a $GITHUB_OUTPUT
#### exit
#### fi
# Fetch the outputs from the previous step
numlabels=${{ steps.get-arch.outputs.numlabels }}
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ on:
push:
paths-ignore:
- 'Documentation/**'
branches:
- 'releases/*'
tags:
#### branches:
#### - 'releases/*'
#### tags:

permissions:
contents: read
Expand Down Expand Up @@ -68,7 +68,8 @@ 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")
#### "apache/nuttx")
"lupyuen5/label-nuttx") ####
# OS
echo "Triggered by change in OS"
APPS_REF=$REF_NAME
Expand All @@ -92,7 +93,8 @@ jobs:
- name: Checkout nuttx repo
uses: actions/checkout@v4
with:
repository: apache/nuttx
#### repository: apache/nuttx
repository: lupyuen5/label-nuttx ####
ref: ${{ steps.gittargets.outputs.os_ref }}
path: sources/nuttx
fetch-depth: 1
Expand All @@ -118,7 +120,8 @@ jobs:

# Select the Linux Builds based on PR Arch Label
Linux-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
#### uses: apache/nuttx/.github/workflows/arch.yml@master
uses: lupyuen5/label-nuttx/.github/workflows/arch.yml@master ####
needs: Fetch-Source
with:
os: Linux
Expand All @@ -142,7 +145,8 @@ jobs:
DOCKER_BUILDKIT: 1

strategy:
max-parallel: 12
#### max-parallel: 12
fail-fast: false ####
matrix:
boards: ${{ fromJSON(needs.Linux-Arch.outputs.selected_builds) }}

Expand Down Expand Up @@ -197,7 +201,8 @@ jobs:

# Select the macOS Builds based on PR Arch Label
macOS-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
#### uses: apache/nuttx/.github/workflows/arch.yml@master
uses: lupyuen5/label-nuttx/.github/workflows/arch.yml@master ####
needs: Fetch-Source
with:
os: macOS
Expand All @@ -212,7 +217,8 @@ jobs:
needs: macOS-Arch
if: ${{ needs.macOS-Arch.outputs.skip_all_builds != '1' }}
strategy:
max-parallel: 2
#### max-parallel: 2
fail-fast: false ####
matrix:
boards: ${{ fromJSON(needs.macOS-Arch.outputs.selected_builds) }}
steps:
Expand Down Expand Up @@ -257,7 +263,8 @@ jobs:

# Select the msys2 Builds based on PR Arch Label
msys2-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
#### 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 @@ -338,7 +345,8 @@ jobs:

# Select the msvc Builds based on PR Arch Label
msvc-Arch:
uses: apache/nuttx/.github/workflows/arch.yml@master
#### 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 cc531e7

Please sign in to comment.