mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 10:37:07 +01:00
6aa6b077bf
Build (the input of the SonarQube Cloud analysis): the analyzer needs the compile commands and the headers, not the objects, so the job no longer compiles under the Build Wrapper. CMake writes compile_commands.json at configure time (CMAKE_EXPORT_COMPILE_COMMANDS), together with the headers the project generates; glslang's build_info.h is made by its own small target. The database goes where sonar.yml reads it (bw-output/), so the trusted workflow is unchanged. build/CMakeFiles is packed now: it holds cmake_pch.hxx, which the commands include. Build binaries: the variant without AVX2 is built for master only (pushes to master, pull requests into master, i.e. staging into master) and by a manual run; branch downloads have the AVX2 build and point to build-master for the other one. A pull request into master from this repository builds again (both variants, the merge), as the check before a release. The variant without AVX2 builds no unit tests (-DWITH_TESTS=OFF, no lua51.dll): they run in the AVX2 build of the same commit. The matrix comes from the `changes` job.