[ci] Add support for MSBuild on Windows.

This adds msbuild job for VS2019 (x64).

* .gitlab-ci.yml: Added "windows msbuild vs2019 amd64".
This commit is contained in:
Alexei Podtelezhnikov 2023-12-18 17:45:05 +00:00
parent 8eab511017
commit ca76683b78
1 changed files with 23 additions and 1 deletions

View File

@ -74,9 +74,24 @@ variables:
meson compile --verbose -C build
$env:MESON_WINDOWS_TESTS"
.build windows msbuild:
extends: '.build windows common'
variables:
# Make sure any failure in PowerShell scripts is fatal.
ErrorActionPreference: 'Stop'
WarningPreference: 'Stop'
script:
- git submodule update --init --recursive
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
MSBuild.exe -clp:ForceConsoleColor -t:Rebuild
-p:Configuration=Debug
-p:Platform=$env:PLATFORM
-p:UserDefines=FT_DEBUG_LOGGING
MSBuild.sln"
# Format of job names:
# <OS> <Build-Tool> <Build-Params> <Architecture>
# <OS> <Build-Tool> <Build-Params> <Architecture>:
# Windows jobs.
@ -100,6 +115,13 @@ windows meson vs2019 amd64 uwp:
VS_UWP: '-app_platform=UWP'
MESON_ARGS_UWP: '--cross-file uwp-crossfile.meson -Dc_winlibs="windowsapp.lib"'
windows msbuild vs2019 amd64:
extends: '.build windows msbuild'
variables:
ARCH: 'amd64'
PLATFORM: 'x64'
# Linux Jobs.
#
# Jobs with "libs" in the name force-enable libraries.