Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex PR #87

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
12 changes: 6 additions & 6 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ jobs:
id: select-builds
run: |

# Skip all macOS and Windows Builds
if [[ "${{ inputs.os }}" != "Linux" ]]; then
echo "Skipping all macOS and Windows Builds"
# Skip all macOS Builds
if [[ "${{ inputs.os }}" == "macOS" ]]; then
echo "Skipping all macOS"
echo "skip_all_builds=1" | tee -a $GITHUB_OUTPUT
exit
fi
Expand Down Expand Up @@ -169,15 +169,15 @@ jobs:
# If PR was Created or Modified: Exclude some boards
pr=${{github.event.pull_request.number}}
if [[ "$pr" != "" ]]; then
echo "Excluding arm-08..14, risc-v-04..06, sim-02, xtensa-02"
echo "Excluding arm-0[1249], arm-1[124-9], risc-v-04..06, sim-03, xtensa-02"
boards=$(
echo '${{ inputs.boards }}' |
jq --compact-output \
'map(
select(
test("arm-0[8-9]") == false and test("arm-1.") == false and
test("arm-0[1249]") == false and test("arm-1[124-9]") == false and
test("risc-v-0[4-9]") == false and
test("sim-0[2-9]") == false and
test("sim-0[3-9]") == false and
test("xtensa-0[2-9]") == false
)
)'
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ jobs:
esac
fi

echo "name=$OS_REF" >> $GITHUB_OUTPUT
#### echo "name=$OS_REF" >> $GITHUB_OUTPUT
echo "os_ref=$OS_REF" >> $GITHUB_OUTPUT ####
echo "apps_ref=$APPS_REF" >> $GITHUB_OUTPUT

- 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 @@ -119,15 +121,16 @@ 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
boards: |
[
"arm-01", "risc-v-01", "sim-01", "xtensa-01", "arm64-01", "x86_64-01", "other",
"arm-02", "risc-v-02", "sim-02", "xtensa-02",
"arm-03", "risc-v-03",
"arm-03", "risc-v-03", "sim-03",
"arm-04", "risc-v-04",
"arm-05", "risc-v-05",
"arm-06", "risc-v-06",
Expand Down Expand Up @@ -197,12 +200,13 @@ 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
boards: |
["macos", "sim-01", "sim-02"]
["macos", "sim-01", "sim-02", "sim-03"]

# Run the selected macOS Builds
macOS:
Expand Down Expand Up @@ -257,7 +261,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 +343,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 Expand Up @@ -385,4 +391,4 @@ jobs:
with:
name: msvc-builds
path: buildartifacts/
continue-on-error: true
continue-on-error: true
1 change: 1 addition & 0 deletions include/test.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions test2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

48 changes: 2 additions & 46 deletions tools/ci/testlist/sim-01.dat
Original file line number Diff line number Diff line change
@@ -1,57 +1,13 @@
/sim/*/*/*/[a-n]*
/sim/*/*/*/[a-b]*
/sim/*/*/*/c[0-i]*

# macOS doesn't have ALSA
-Darwin,sim:alsa

# macOS doesn't have V4L2
-Darwin,sim:nxcamera

# clang doesn't -fsanitize=kernel-address
-Darwin,sim:kasan
-Darwin,sim:citest

# macOS doesn't support ELF loading
-Darwin,sim:elf
-Darwin,sim:loadable

# macOS doesn't support 32bit(CONFIG_SIM_M32=y) anymore
-Darwin,sim:module32

# Do not build Linux configs
-Darwin,sim:linuxi2c
-Darwin,sim:linuxspi

# macOS doesn't have X11
-Darwin,sim:lvgl_fb
-Darwin,sim:lvgl_lcd
-Darwin,sim:nimble
-Darwin,sim:nsh2
-Darwin,sim:nx11
-Darwin,sim:nxlines
-Darwin,sim:nxwm

# Skip WebAssembly Micro Runtime
-Darwin,sim:wamr

# macOS matter compilation is not currently supported
-Darwin,sim:matter

# Boards build by CMake
CMake,sim:alsa
CMake,sim:bluetooth
CMake,sim:bthcisock
CMake,sim:dynconns
CMake,sim:fb
CMake,sim:foc
CMake,sim:ipforward
CMake,sim:linuxi2c
CMake,sim:linuxspi
CMake,sim:minibasic
CMake,sim:mount
CMake,sim:mtdpart
CMake,sim:mtdrwb
CMake,sim:nettest
CMake,sim:note
CMake,sim:nsh
CMake,sim:nxffs
CMake,sim:matter
82 changes: 41 additions & 41 deletions tools/ci/testlist/sim-02.dat
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
/sim/*/*/*/[o-z]*
/sim/*/*/*/c[j-z]*
/sim/*/*/*/[d-n]*

# macOS doesn't support 32bit anymore(CONFIG_SIM_M32=y)
-Darwin,sim:posix_spawn
-Darwin,sim:rpproxy
-Darwin,sim:rpserver
-Darwin,sim:sotest32
# macOS doesn't have V4L2
-Darwin,sim:nxcamera

# clang doesn't -fsanitize=kernel-address
-Darwin,sim:ostest
-Darwin,sim:ostest_oneholder
-Darwin,sim:kasan

# macOS doesn't support --wrap flag
# ld: unknown option: --wrap
-Darwin,sim:segger
# macOS doesn't support ELF loading
-Darwin,sim:elf
-Darwin,sim:loadable

# macOS doesn't support 32bit(CONFIG_SIM_M32=y) anymore
-Darwin,sim:module32

# Do not build Linux configs
-Darwin,sim:linuxi2c
-Darwin,sim:linuxspi

# macOS doesn't have X11
-Darwin,sim:touchscreen
-Darwin,sim:lvgl_fb
-Darwin,sim:lvgl_lcd
-Darwin,sim:nimble
-Darwin,sim:nsh2
-Darwin,sim:nx11
-Darwin,sim:nxlines
-Darwin,sim:nxwm

# Do not build Windows configs
-,sim:windows
# Skip WebAssembly Micro Runtime
-Darwin,sim:wamr

# macOS doesn't support simusb simhost
-Darwin,sim:usbdev
-Darwin,sim:usbhost
# macOS matter compilation is not currently supported
-Darwin,sim:matter

# Boards build by CMake
CMake,sim:ostest
CMake,sim:ostest_oneholder
CMake,sim:pf_ieee802154
CMake,sim:pktradio
CMake,sim:rc
CMake,sim:romfs
CMake,sim:rpproxy
CMake,sim:rpserver
CMake,sim:rtptools
CMake,sim:sensor
CMake,sim:sixlowpan
CMake,sim:smartfs
CMake,sim:smp
CMake,sim:spiffs
CMake,sim:tcpblaster
CMake,sim:tcploop
CMake,sim:udgram
CMake,sim:unionfs
CMake,sim:usbdev
CMake,sim:usbhost
CMake,sim:userfs
CMake,sim:usrsocktest
CMake,sim:ustream
CMake,sim:vncserver
CMake,sim:dynconns
CMake,sim:fb
CMake,sim:foc
CMake,sim:ipforward
CMake,sim:linuxi2c
CMake,sim:linuxspi
CMake,sim:minibasic
CMake,sim:mount
CMake,sim:mtdpart
CMake,sim:mtdrwb
CMake,sim:nettest
CMake,sim:note
CMake,sim:nsh
CMake,sim:nxffs
CMake,sim:matter
51 changes: 51 additions & 0 deletions tools/ci/testlist/sim-03.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/sim/*/*/*/[o-z]*

# macOS doesn't support 32bit anymore(CONFIG_SIM_M32=y)
-Darwin,sim:posix_spawn
-Darwin,sim:rpproxy
-Darwin,sim:rpserver
-Darwin,sim:sotest32

# clang doesn't -fsanitize=kernel-address
-Darwin,sim:ostest
-Darwin,sim:ostest_oneholder

# macOS doesn't support --wrap flag
# ld: unknown option: --wrap
-Darwin,sim:segger

# macOS doesn't have X11
-Darwin,sim:touchscreen

# Do not build Windows configs
-,sim:windows

# macOS doesn't support simusb simhost
-Darwin,sim:usbdev
-Darwin,sim:usbhost

# Boards build by CMake
CMake,sim:ostest
CMake,sim:ostest_oneholder
CMake,sim:pf_ieee802154
CMake,sim:pktradio
CMake,sim:rc
CMake,sim:romfs
CMake,sim:rpproxy
CMake,sim:rpserver
CMake,sim:rtptools
CMake,sim:sensor
CMake,sim:sixlowpan
CMake,sim:smartfs
CMake,sim:smp
CMake,sim:spiffs
CMake,sim:tcpblaster
CMake,sim:tcploop
CMake,sim:udgram
CMake,sim:unionfs
CMake,sim:usbdev
CMake,sim:usbhost
CMake,sim:userfs
CMake,sim:usrsocktest
CMake,sim:ustream
CMake,sim:vncserver
Loading