axmol/tools/win-ci/build.ps1

17 lines
474 B
PowerShell

$BUILD_ARCH = $args[0]
# CONFIG_ALL_OPTIONS
$CONFIG_ALL_OPTIONS=@()
if($BUILD_ARCH -eq "x86") {
$CONFIG_ALL_OPTIONS += '-A', 'Win32'
}
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS -Thost=x64 -DAX_ENABLE_EXT_IMGUI=TRUE -DAX_ENABLE_EXT_LIVE2D=TRUE -DAX_ENABLE_EXT_EFFEKSEER=TRUE
cmake --build build_$BUILD_ARCH --config Release --target cpp_tests
if ( !($env:PULL_REQUEST -eq 'yes') ) {
cmake --build build_$BUILD_ARCH --config Release --target lua_tests
}