Skip to content

Commit 95c99d9

Browse files
simbit18lupyuen
authored andcommitted
build.yml: Brought into sync with NuttX repository
added CI: Kill CI Test after 2 hours see apache/nuttx#14849 job msvc Windows native see apache/nuttx#13894 apache/nuttx#15989 Signed-off-by: simbit18 <[email protected]>
1 parent 3e37dd2 commit 95c99d9

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build.yml

+53
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ jobs:
179179
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
180180
./cibuild.sh -c -A -N -R --codechecker testlist/${{matrix.boards}}.dat
181181
else
182+
( sleep 7200 ; echo Killing pytest after timeout... ; pkill -f pytest )&
182183
./cibuild.sh -c -A -N -R -S testlist/${{matrix.boards}}.dat
183184
fi
184185
@@ -330,3 +331,55 @@ jobs:
330331
name: msys2-${{matrix.boards}}-builds
331332
path: buildartifacts/
332333
continue-on-error: true
334+
335+
# Select the msvc Builds based on PR Arch Label
336+
msvc-Arch:
337+
uses: apache/nuttx-apps/.github/workflows/arch.yml@master
338+
needs: Fetch-Source
339+
with:
340+
os: msvc
341+
boards: |
342+
["msvc_placeholder_with_sim_keyword"]
343+
344+
# Build with MSVC in Windows native
345+
msvc:
346+
needs: msvc-Arch
347+
if: ${{ needs.msvc-Arch.outputs.skip_all_builds != '1' }}
348+
runs-on: windows-latest
349+
steps:
350+
- uses: actions/checkout@v4
351+
# Set up Python environment and install kconfiglib
352+
- name: Set up Python and install kconfiglib
353+
uses: actions/setup-python@v5
354+
with:
355+
python-version: '3.10'
356+
- name: Install kconfiglib
357+
run: |
358+
pip install kconfiglib
359+
360+
- run: git config --global core.autocrlf false
361+
362+
- name: Download Source Artifact
363+
uses: actions/download-artifact@v4
364+
with:
365+
name: source-bundle
366+
path: .
367+
368+
- name: Extract sources
369+
run: |
370+
7z x sources.tar.gz -y
371+
7z x sources.tar -y
372+
373+
- name: Run Builds
374+
run: |
375+
"ARTIFACTDIR=${{github.workspace}}\sources\buildartifacts" >> $env:GITHUB_ENV
376+
git config --global --add safe.directory ${{github.workspace}}\sources\nuttx
377+
git config --global --add safe.directory ${{github.workspace}}\sources\apps
378+
cd sources\nuttx\tools\ci
379+
.\cibuild.ps1 -n -i -A -C -N testlist\windows.dat
380+
381+
- uses: actions/upload-artifact@v4
382+
with:
383+
name: msvc-builds
384+
path: ./sources/buildartifacts/
385+
continue-on-error: true

0 commit comments

Comments
 (0)