CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
86 lines
2.3 KiB
Batchfile
86 lines
2.3 KiB
Batchfile
SETLOCAL ENABLEDELAYEDEXPANSION
|
|
|
|
SET BAZEL_EXE=%KOKORO_GFILE_DIR%\bazel-8.2.1-windows-x86_64.exe
|
|
|
|
SET PATH=C:\Python34;%PATH%
|
|
SET BAZEL_PYTHON=C:\python34\python.exe
|
|
SET BAZEL_SH=C:\tools\msys64\usr\bin\bash.exe
|
|
SET CMAKE_BIN="cmake.exe"
|
|
SET CTEST_BIN="ctest.exe"
|
|
SET CTEST_OUTPUT_ON_FAILURE=1
|
|
SET CMAKE_BUILD_PARALLEL_LEVEL=16
|
|
SET CTEST_PARALLEL_LEVEL=16
|
|
|
|
SET GTEST_ROOT=%~dp0\..
|
|
IF %errorlevel% neq 0 EXIT /B 1
|
|
|
|
:: ----------------------------------------------------------------------------
|
|
:: CMake
|
|
SET CMAKE_BUILD_PATH=cmake_msvc2022
|
|
MKDIR %CMAKE_BUILD_PATH%
|
|
CD %CMAKE_BUILD_PATH%
|
|
|
|
%CMAKE_BIN% %GTEST_ROOT% ^
|
|
-G "Visual Studio 17 2022" ^
|
|
-DCMAKE_CXX_STANDARD=17 ^
|
|
-DPYTHON_EXECUTABLE:FILEPATH=c:\python37\python.exe ^
|
|
-DPYTHON_INCLUDE_DIR:PATH=c:\python37\include ^
|
|
-DPYTHON_LIBRARY:FILEPATH=c:\python37\lib\site-packages\pip ^
|
|
-Dgtest_build_samples=ON ^
|
|
-Dgtest_build_tests=ON ^
|
|
-Dgmock_build_tests=ON
|
|
IF %errorlevel% neq 0 EXIT /B 1
|
|
|
|
%CMAKE_BIN% --build . --target ALL_BUILD --config Debug -- -maxcpucount
|
|
IF %errorlevel% neq 0 EXIT /B 1
|
|
|
|
%CTEST_BIN% -C Debug --timeout 600
|
|
IF %errorlevel% neq 0 EXIT /B 1
|
|
|
|
CD %GTEST_ROOT%
|
|
RMDIR /S /Q %CMAKE_BUILD_PATH%
|
|
|
|
:: ----------------------------------------------------------------------------
|
|
:: Bazel
|
|
|
|
:: The default home directory on Kokoro is a long path which causes errors
|
|
:: because of Windows limitations on path length.
|
|
:: --output_user_root=C:\tmp causes Bazel to use a shorter path.
|
|
SET BAZEL_VS=C:\Program Files\Microsoft Visual Studio\2022\Community
|
|
|
|
:: Use Bazel Vendor mode to reduce reliance on external dependencies.
|
|
IF EXIST "%KOKORO_GFILE_DIR%\distdir\googletest_vendor.tar.gz" (
|
|
tar --force-local -xf "%KOKORO_GFILE_DIR%\distdir\googletest_vendor.tar.gz" -C c:
|
|
SET VENDOR_FLAG=--vendor_dir=c:\googletest_vendor
|
|
) ELSE (
|
|
SET VENDOR_FLAG=
|
|
)
|
|
|
|
:: C++17
|
|
%BAZEL_EXE% ^
|
|
--output_user_root=C:\tmp ^
|
|
test ... ^
|
|
--compilation_mode=dbg ^
|
|
--copt=/std:c++17 ^
|
|
--copt=/WX ^
|
|
--enable_bzlmod=true ^
|
|
--keep_going ^
|
|
--test_output=errors ^
|
|
--test_tag_filters=-no_test_msvc2017 ^
|
|
%VENDOR_FLAG%
|
|
IF %errorlevel% neq 0 EXIT /B 1
|
|
|
|
:: C++20
|
|
%BAZEL_EXE% ^
|
|
--output_user_root=C:\tmp ^
|
|
test ... ^
|
|
--compilation_mode=dbg ^
|
|
--copt=/std:c++20 ^
|
|
--copt=/WX ^
|
|
--enable_bzlmod=true ^
|
|
--keep_going ^
|
|
--test_output=errors ^
|
|
--test_tag_filters=-no_test_msvc2017 ^
|
|
%VENDOR_FLAG%
|
|
IF %errorlevel% neq 0 EXIT /B 1
|