1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
image: Visual Studio 2019
configuration:
- Release
environment:
matrix:
- generator: Unix Makefiles
- generator: Visual Studio 16 2019
platform:
- Win32
- x64
install:
- set "PATH=C:\msys64\usr\bin;%PATH%"
- ps: |
if ($env:generator -eq "Unix Makefiles") {
$env:PATH, $env:PKG_CONFIG_PATH = if ($env:Platform -eq "x64") {
"C:\msys64\mingw64\bin;$env:PATH", "C:/msys64/mingw64/lib/pkgconfig"
} else {
"C:\msys64\mingw32\bin;$env:PATH", "C:/msys64/mingw32/lib/pkgconfig"
}
}
- if "%generator%"=="Unix Makefiles" pacman -Sy --ask=20 --noconfirm --noprogressbar --needed make
before_build:
- ps: |
$env:cmake_e = if ($env:generator -match "Visual") {
if ($env:Platform -eq "x64") { "-A x64" } else { "-A Win32" }
} else {
"-DCMAKE_BUILD_TYPE=$env:configuration"
}
- cmake -S Project/CMake -B build -G "%generator%" %cmake_e%
for:
- matrix:
only:
- generator: Unix Makefiles
build_script:
- make -C build -j
build:
project: build/ZenLib.sln
verbosity: quiet
|