walnux/tools/ci/platforms
simbit18 34c4b15b4d tools/ci: Added CI system on Windows Native
This PR adds support for the CI system for native Windows as well. It allows you to build NuttX on GitHub and test it locally for Windows users.

With these CI tools with PowerShell scripts, it is possible to build NuttX for Windows Native using (for now only) Cmake + Ninja with the same logic as the CI system with Bash scripts.

This allows the msvc job to be used not only with the simulator (currently only with Visual Studio 17 2022), but also with other architectures using the same Windows runner to get more coverage and avoid future breakage.
As with the other jobs, we use artifacts to save the compilation result at the end of the workflow execution (previously for the simulator it was not done).

The proposed solution is based on the following additions and modified:

Modified Files
buildyml -> only CI Jobs MSVC

New Files in tools/
ci/cibuild.ps1 -> Added Powershell script for Run the CI Builds
ci/platforms/windows.ps1 -> Added Powershell script for installing toolchains and tools.
testlist/windows.dat -> Target (Add sim (msvc), risc-v arm)
tools/testbuild.ps1

We tested the NuttX build on GitHub and locally.

How we build on GitHub and test locally.

Locally
cd .\nuttx\tools\ci\

.\cibuild.ps1 -n -i -A -C -N .\testlist\windows.dat

Signed-off-by: simbit18 <simbit18@gmail.com>
2025-03-19 19:59:44 +08:00
..
darwin.sh tools/ci/platforms/darwin.sh: bump bloaty version 2024-12-13 23:28:02 +08:00
darwin_arm64.sh [ci] macOS platforms: added LLVM toolchain for Arm 2024-12-11 14:09:45 -03:00
linux.sh [ci] platforms: added toolchains 2024-11-26 10:14:42 +08:00
msys2.sh [ci] platforms: added toolchains 2024-11-26 10:14:42 +08:00
ubuntu.sh [ci] platforms: added toolchains 2024-11-26 10:14:42 +08:00
windows.ps1 tools/ci: Added CI system on Windows Native 2025-03-19 19:59:44 +08:00