From cc531e71a80bc4cd45b990c01d8d793de9f79a6d Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Fri, 22 Nov 2024 07:35:19 +0800 Subject: [PATCH 1/4] Change apache/nuttx to lupyuen5/label-nuttx. Enable macOS Builds. Build on Push. Set "fail-fast: false" --- .github/workflows/arch.yml | 10 +++++----- .github/workflows/build.yml | 30 +++++++++++++++++++----------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index 7367eb9a79544..d3dbaf01580c8 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -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 }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bae1382c1a6c..4999552747328 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,9 +20,9 @@ on: push: paths-ignore: - 'Documentation/**' - branches: - - 'releases/*' - tags: + #### branches: + #### - 'releases/*' + #### tags: permissions: contents: read @@ -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 @@ -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 @@ -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 @@ -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) }} @@ -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 @@ -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: @@ -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 @@ -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 From 20f359173000e1996cdb7ed947f8eacf9cf01016 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Fri, 22 Nov 2024 07:42:44 +0800 Subject: [PATCH 2/4] CI: Build `other` for Simple x86 PR --- .github/workflows/arch.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index d3dbaf01580c8..5c0a2d8cd0088 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -76,6 +76,8 @@ jobs: echo 'arch_contains_sim=1' | tee -a $GITHUB_OUTPUT elif [[ "$labels" == *"Arch: x86_64"* ]]; then echo 'arch_contains_x86_64=1' | tee -a $GITHUB_OUTPUT + elif [[ "$labels" == *"Arch: x86"* ]]; then + echo 'arch_contains_x86=1' | tee -a $GITHUB_OUTPUT elif [[ "$labels" == *"Arch: xtensa"* ]]; then echo 'arch_contains_xtensa=1' | tee -a $GITHUB_OUTPUT fi @@ -91,6 +93,8 @@ jobs: echo 'board_contains_sim=1' | tee -a $GITHUB_OUTPUT elif [[ "$labels" == *"Board: x86_64"* ]]; then echo 'board_contains_x86_64=1' | tee -a $GITHUB_OUTPUT + elif [[ "$labels" == *"Board: x86"* ]]; then + echo 'board_contains_x86=1' | tee -a $GITHUB_OUTPUT elif [[ "$labels" == *"Board: xtensa"* ]]; then echo 'board_contains_xtensa=1' | tee -a $GITHUB_OUTPUT fi @@ -119,12 +123,14 @@ jobs: arch_contains_arm64=${{ steps.get-arch.outputs.arch_contains_arm64 }} arch_contains_riscv=${{ steps.get-arch.outputs.arch_contains_riscv }} arch_contains_sim=${{ steps.get-arch.outputs.arch_contains_sim }} + arch_contains_x86=${{ steps.get-arch.outputs.arch_contains_x86 }} arch_contains_x86_64=${{ steps.get-arch.outputs.arch_contains_x86_64 }} arch_contains_xtensa=${{ steps.get-arch.outputs.arch_contains_xtensa }} board_contains_arm=${{ steps.get-arch.outputs.board_contains_arm }} board_contains_arm64=${{ steps.get-arch.outputs.board_contains_arm64 }} board_contains_riscv=${{ steps.get-arch.outputs.board_contains_riscv }} board_contains_sim=${{ steps.get-arch.outputs.board_contains_sim }} + board_contains_x86=${{ steps.get-arch.outputs.board_contains_x86 }} board_contains_x86_64=${{ steps.get-arch.outputs.board_contains_x86_64 }} board_contains_xtensa=${{ steps.get-arch.outputs.board_contains_xtensa }} @@ -151,6 +157,7 @@ jobs: "$arch_contains_arm64" != "$board_contains_arm64" || "$arch_contains_riscv" != "$board_contains_riscv" || "$arch_contains_sim" != "$board_contains_sim" || + "$arch_contains_x86" != "$board_contains_x86" || "$arch_contains_x86_64" != "$board_contains_x86_64" || "$arch_contains_xtensa" != "$board_contains_xtensa" ]]; then @@ -218,6 +225,12 @@ jobs: skip_build=1 fi + # For "Arch / Board: x86": Build other + elif [[ "$arch_contains_x86" == "1" || "$board_contains_x86" == "1" ]]; then + if [[ "$board" != *"other"* ]]; then + skip_build=1 + fi + # For "Arch / Board: x86_64": Build x86_64-01 elif [[ "$arch_contains_x86_64" == "1" || "$board_contains_x86_64" == "1" ]]; then if [[ "$board" != *"x86_64-"* ]]; then From 4c913cb1eadfbe7a00b13ab07c8903361cb4c7f6 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Fri, 22 Nov 2024 07:48:38 +0800 Subject: [PATCH 3/4] Arch: x86_64, Board: x86_64 --- arch/x86_64/test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 arch/x86_64/test.txt diff --git a/arch/x86_64/test.txt b/arch/x86_64/test.txt new file mode 100644 index 0000000000000..8b137891791fe --- /dev/null +++ b/arch/x86_64/test.txt @@ -0,0 +1 @@ + From 958a96bf37ee07bbcf8c3d9bf195b5b0dc40a97e Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Fri, 22 Nov 2024 07:54:07 +0800 Subject: [PATCH 4/4] Create test.txt --- boards/x86_64/intel64/qemu-intel64/test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 boards/x86_64/intel64/qemu-intel64/test.txt diff --git a/boards/x86_64/intel64/qemu-intel64/test.txt b/boards/x86_64/intel64/qemu-intel64/test.txt new file mode 100644 index 0000000000000..8b137891791fe --- /dev/null +++ b/boards/x86_64/intel64/qemu-intel64/test.txt @@ -0,0 +1 @@ +