2021-08-27 01:42:32 +08:00
|
|
|
$BUILD_ARCH = $args[0]
|
|
|
|
|
|
|
|
# CONFIG_ALL_OPTIONS
|
|
|
|
$CONFIG_ALL_OPTIONS=@()
|
|
|
|
|
|
|
|
if($BUILD_ARCH -eq "x86") {
|
|
|
|
$CONFIG_ALL_OPTIONS += '-A', 'Win32'
|
|
|
|
}
|
|
|
|
|
2022-04-24 20:08:48 +08:00
|
|
|
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS -Thost=x64 -DAX_ENABLE_EXT_IMGUI=ON
|
2021-08-27 01:42:32 +08:00
|
|
|
|
2022-05-23 17:11:10 +08:00
|
|
|
cmake --build build_$BUILD_ARCH --config Release --target cpp_tests
|
2022-10-13 21:44:42 +08:00
|
|
|
|
|
|
|
if ( !($env:PULL_REQUEST -eq 'yes') ) {
|
|
|
|
cmake --build build_$BUILD_ARCH --config Release --target lua_tests
|
|
|
|
}
|