ci: Add GitHub CI job for ClangCL/MSVC

This commit is contained in:
Gabriel Ferreira
2025-01-23 10:43:26 +01:00
parent 04e605554f
commit 2cae0c4b53

View File

@@ -196,3 +196,26 @@ jobs:
- name: Run tests and examples
if: env.cache_misses != '0'
run: ./test.py --no-build
Windows_Visual_Studio: # disable until remaining issues are not fixed and find a way to cache compilation artifacts
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Configure CMake
run: |
%comspec% /k ""C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat""
python ns3 configure --enable-tests --enable-examples --enable-asserts -d release -- -G"Visual Studio 17 2022" -A x64 -T ClangCL
- name: Build ns-3
continue-on-error: true
run: |
%comspec% /k ""C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat""
python ns3 build
- name: Run tests and examples
continue-on-error: true
timeout-minutes: 60
run: |
set PATH=%CD%\build;%PATH%
python .\test.py --no-build