mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 06:39:25 +08:00
c2e5270ec3
Replace the single-compiler `tests-windows-msvc` job with a matrix job `tests-windows` that runs the Windows shim unit tests under both native MSVC (cl.exe) and the LLVM clang-cl.exe driver against the same MSVC headers/CRT. The matrix axis is `compiler: [msvc, clang-cl]` with `fail-fast: false` so each toolchain reports independently. Wire the toolchain selection through the CC/CXX env vars on the configure step: empty for the MSVC default discovered via vcvars, or `clang-cl.exe` for the LLVM driver. The remaining steps (build, ctest, save-ccache) are toolchain-agnostic. Catches toolchain-specific shim regressions (clang-cl widening of the MSVC shim gates, fuzztest fallback to FetchContent gtest, the googletest -Wcharacter-conversion suppression) before they hit the SITL build path. Signed-off-by: Nuno Marques <n.marques21@hotmail.com>