File tree Expand file tree Collapse file tree 3 files changed +30
-17
lines changed Expand file tree Collapse file tree 3 files changed +30
-17
lines changed Original file line number Diff line number Diff line change 7272 shell : bash
7373 run : ci/scripts/build_example.sh $(pwd)/example
7474 windows :
75- name : AMD64 Windows 2019
76- runs-on : windows-2019
75+ name : AMD64 Windows 2022
76+ runs-on : windows-2022
7777 timeout-minutes : 30
7878 steps :
7979 - name : Checkout iceberg-cpp
Original file line number Diff line number Diff line change @@ -25,21 +25,27 @@ build_dir=${1}/build
2525mkdir ${build_dir}
2626pushd ${build_dir}
2727
28+ is_windows () {
29+ [[ " ${OSTYPE} " == " msys" || " ${OSTYPE} " == " win32" ]]
30+ }
31+
2832CMAKE_ARGS=(
2933 " -DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX:- ${ICEBERG_HOME} } "
30- " -DCMAKE_BUILD_TYPE=Debug"
3134)
3235
33- BUILD_ARGS=()
34-
35- # Add Windows-specific toolchain file if on Windows
36- if [[ " ${OSTYPE} " == " msys" || " ${OSTYPE} " == " win32" ]]; then
36+ if is_windows; then
3737 CMAKE_ARGS+=(" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" )
38- BUILD_ARGS+=(" --config Debug" )
38+ CMAKE_ARGS+=(" -DCMAKE_BUILD_TYPE=Release" )
39+ else
40+ CMAKE_ARGS+=(" -DCMAKE_BUILD_TYPE=Debug" )
3941fi
4042
4143cmake " ${CMAKE_ARGS[@]} " ${source_dir}
42- cmake --build . " ${BUILD_ARGS[@]+" ${BUILD_ARGS[@]} " } "
44+ if is_windows; then
45+ cmake --build . --config Release
46+ else
47+ cmake --build .
48+ fi
4349
4450popd
4551
Original file line number Diff line number Diff line change @@ -25,24 +25,31 @@ build_dir=${1}/build
2525mkdir ${build_dir}
2626pushd ${build_dir}
2727
28+ is_windows () {
29+ [[ " ${OSTYPE} " == " msys" || " ${OSTYPE} " == " win32" ]]
30+ }
31+
2832CMAKE_ARGS=(
2933 " -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX:- ${ICEBERG_HOME} } "
3034 " -DICEBERG_BUILD_STATIC=ON"
3135 " -DICEBERG_BUILD_SHARED=ON"
32- " -DCMAKE_BUILD_TYPE=Debug"
3336)
3437
35- BUILD_ARGS=()
36-
37- # Add Windows-specific toolchain file if on Windows
38- if [[ " ${OSTYPE} " == " msys" || " ${OSTYPE} " == " win32" ]]; then
38+ if is_windows; then
3939 CMAKE_ARGS+=(" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" )
40- BUILD_ARGS+=(" --config Debug" )
40+ CMAKE_ARGS+=(" -DCMAKE_BUILD_TYPE=Release" )
41+ else
42+ CMAKE_ARGS+=(" -DCMAKE_BUILD_TYPE=Debug" )
4143fi
4244
4345cmake " ${CMAKE_ARGS[@]} " ${source_dir}
44- cmake --build . " ${BUILD_ARGS[@]+" ${BUILD_ARGS[@]} " } " --target install
45- ctest --output-on-failure -C Debug
46+ if is_windows; then
47+ cmake --build . --config Release --target install
48+ ctest --output-on-failure -C Release
49+ else
50+ cmake --build . --target install
51+ ctest --output-on-failure
52+ fi
4653
4754popd
4855
You can’t perform that action at this time.
0 commit comments