Specify build type implicitly

Again, shortening the CMake command line.
Unfortunately, this doesn't apply to `--install`.
This commit is contained in:
ISSOtm
2026-03-18 03:02:05 +01:00
committed by Eldred Habert
parent 145473d9bd
commit 5abebcf61f
2 changed files with 6 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ env:
# https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories
CMAKE_BUILD_PARALLEL_LEVEL: 4 # `cmake --build` now implies `--parallel 4`.
CMAKE_INSTALL_PARALLEL_LEVEL: 4 # `cmake --install` now implies `--parallel 4`.
CMAKE_CONFIG_TYPE: Debug # `cmake --build` now implies `--config Debug`.
jobs:
unix:
@@ -166,7 +167,7 @@ jobs:
# otherwise they can trigger `-Werror=dev` (from the `develop` preset).
run: | # ASan seems to be broken on Windows, so we disable it.
cmake -S . -B build -A ${{ matrix.platform }} --preset develop -DFETCHCONTENT_BASE_DIR="$TEMP/cmake-deps" -DBISON_EXECUTABLE=bison/win_bison.exe -DSANITIZERS=OFF
cmake --build build --config Debug
cmake --build build
cmake --install build --config Debug --prefix install_dir --verbose
- name: Package binaries
shell: bash