This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f5d25e1e ci: Sync build.yml workflow with NuttX repository.
4f5d25e1e is described below

commit 4f5d25e1eb87485a88953eca49c68fa19db8516e
Author: trns1997 <[email protected]>
AuthorDate: Sat Oct 18 14:46:39 2025 +0200

    ci: Sync build.yml workflow with NuttX repository.
    
    Update the  workflow in nuttx-apps to match the
    corresponding workflow in the main NuttX repository, ensuring
    consistency across both CI configurations.
    
    This synchronization follows the guidance from:
    https://lupyuen.org/articles/ci3\#sync-to-nuttx-apps
    
    * Aligns CI triggers, job structure, and naming conventions.
    * Maintains consistency between NuttX and nuttx-apps CI setups.
    
    Signed-off-by: trns1997 <[email protected]>
---
 .github/workflows/build.yml | 49 +++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 47 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4c65a95c7..d639d0ccd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -190,6 +190,51 @@ jobs:
           path: buildartifacts/
         continue-on-error: true
 
+  # Test the out-of-tree build
+  OOT-Build:
+    needs: Linux
+    runs-on: ubuntu-latest
+    env:
+      DOCKER_BUILDKIT: 1
+    steps:
+      - name: Download Source Artifact
+        uses: actions/download-artifact@v5
+        with:
+          name: source-bundle
+          path: .
+
+      - name: Extract sources
+        run: tar zxf sources.tar.gz
+
+      - name: Docker Login
+        uses: docker/login-action@v3
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Export NuttX Repo SHA
+        run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> 
$GITHUB_ENV
+
+      - name: Run Out-of-Tree Build Test
+        uses: ./sources/nuttx/.github/actions/ci-container
+        env:
+          BLOBDIR: /tools/blobs
+        with:
+          run: |
+            echo "::add-matcher::sources/nuttx/.github/gcc.json"
+            git config --global --add safe.directory 
/github/workspace/sources/nuttx
+            git config --global --add safe.directory 
/github/workspace/sources/apps
+            cd sources/nuttx
+            ./tools/ci/cibuild-oot.sh
+
+      - uses: actions/upload-artifact@v4
+        if: ${{ always() }}
+        with:
+          name: oot-build-artifacts
+          path: sources/apps/testing/cxx-oot-build
+        continue-on-error: true
+
   # Select the macOS Builds based on PR Arch Label
   macOS-Arch:
     uses: apache/nuttx-apps/.github/workflows/arch.yml@master
@@ -295,7 +340,7 @@ jobs:
             zlib-devel
             cmake
             ninja
-            python-pip 
+            python-pip
             vim
 
       - name: pip3 install
@@ -382,4 +427,4 @@ jobs:
         with:
           name: msvc-builds
           path: ./sources/buildartifacts/
-        continue-on-error: true
\ No newline at end of file
+        continue-on-error: true

Reply via email to