Skip to content

Commit

Permalink
Make Windows build environment parallel with help of Ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
cngzhnp committed Mar 30, 2023
1 parent b793426 commit 134f5e3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/do_ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ switch ($action) {
}
"cmake.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
"-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
$exit = $LASTEXITCODE
Expand All @@ -53,7 +53,7 @@ switch ($action) {
}
"cmake.dll.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DOPENTELEMETRY_BUILD_DLL=1 `
"-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
Expand All @@ -80,7 +80,7 @@ switch ($action) {
}
"cmake.maintainer.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DOTELCPP_MAINTAINER_MODE=ON `
-DWITH_NO_DEPRECATED_CODE=ON `
-DWITH_JAEGER=OFF `
Expand All @@ -103,7 +103,7 @@ switch ($action) {
}
"cmake.with_async_export.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DWITH_ASYNC_EXPORT_PREVIEW=ON `
"-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
Expand All @@ -124,7 +124,7 @@ switch ($action) {
}
"cmake.exporter.otprotocol.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DWITH_OTPROTCOL=ON `
"-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
Expand All @@ -145,7 +145,7 @@ switch ($action) {
}
"cmake.exporter.otprotocol.dll.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DOPENTELEMETRY_BUILD_DLL=1 `
-DWITH_OTPROTCOL=ON `
Expand All @@ -167,7 +167,7 @@ switch ($action) {
}
"cmake.exporter.otprotocol.with_async_export.test" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DWITH_ASYNC_EXPORT_PREVIEW=ON `
-DWITH_OTPROTCOL=ON `
Expand All @@ -189,7 +189,7 @@ switch ($action) {
}
"cmake.build_example_plugin" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DWITH_ASYNC_EXPORT_PREVIEW=ON `
"-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
Expand All @@ -206,7 +206,7 @@ switch ($action) {
}
"cmake.test_example_plugin" {
cd "$BUILD_DIR"
cmake $SRC_DIR `
cmake -G Ninja $SRC_DIR `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DWITH_ASYNC_EXPORT_PREVIEW=ON `
"-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
Expand Down

0 comments on commit 134f5e3

Please sign in to comment.