simbit18 opened a new pull request, #15989:
URL: https://github.com/apache/nuttx/pull/15989

   ## Summary
   
   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 -> Run the CI Builds 
   ci/platforms/windows.ps1 -> Added script for installing toolchains and 
tools. 
        Added the pre-built kconfig-frontends that contains my kconfig-tweak 
script converted to PowerShell (without using the sed and grep tools)
   
   testlist/windows.dat -> Target (Add sim (msvc), risc-v arm) 
   tools/testbuild.ps1
   
   ## Impact
   
   Impact on user: This PR adds CI tools for Windows users.
   
   Impact on build: This PR adds CI support NuttX on Windows Native to avoid 
future breakage.
   
   Impact on hardware: NO
   
   Impact on documentation: NO
   
   Impact on security: NO
   
   Impact on compatibility: NO
   
   ## Testing
   
   We tested the NuttX build on GitHub and locally.
   
   How we build on GitHub and test locally.
   GitHub
   
https://github.com/simbit18/nuttx_test_pr/actions/runs/13839199580/job/38722147529#logs
   
   Locally
   cd .\nuttx\tools\ci\
   
   .\cibuild.ps1 -n -i -A -C -N .\testlist\windows.dat
   
   Simulator
   ```
   C:\nuttx_test\sim\windows\nuttx.exe
   
   NuttShell (NSH)
   nsh> uname -a
   NuttX  0.0.0 eb1aefdc24-dirty Mar 13 2025 15:28:38 sim sim
   nsh> help
   help usage:  help [-v] [<cmd>]
   
       .           cmp         fdinfo      mkdir       pwd         umount
       [           dirname     free        mkfifo      rm          unset
       ?           dd          help        mkrd        rmdir       uptime
       alias       df          hexdump     mount       set         usleep
       unalias     dmesg       ifconfig    mv          sleep       watch
       arp         echo        ifdown      nslookup    source      xd
       basename    env         ifup        pidof       test        wait
       break       exec        kill        poweroff    time
       cat         exit        pkill       quit        true
       cd          expr        losetup     printf      truncate
       cp          false       ls          ps          uname
   
   Builtin Apps:
       nsh       sh        ping      ostest    hello
   nsh> poweroff
   
   ```
   arrm nucleo-l152re:nsh
   
![arm](https://github.com/user-attachments/assets/94db1a77-a1cf-4cfb-bb7f-32b67029479a)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to