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> |
||
|---|---|---|
| .. | ||
| actions | ||
| ISSUE_TEMPLATE | ||
| linters | ||
| workflows | ||
| dependabot.yml | ||
| gcc.json | ||
| labeler.yml | ||
| nxstyle.json | ||
| PULL_REQUEST_TEMPLATE.md | ||
| SECURITY.md | ||