2021-02-05 15:36:53 +00:00
|
|
|
.windows_build:
|
|
|
|
variables:
|
|
|
|
# Note that shell runners only support runners with a single
|
|
|
|
# concurrency level. We can't use `$CI_CONCURRENCY_ID` because this may
|
|
|
|
# change between the build and test stages which CMake doesn't support.
|
|
|
|
# Even if we could, it could change if other runners on the machine
|
|
|
|
# could run at the same time, so we drop it.
|
2022-10-21 01:07:19 +00:00
|
|
|
GIT_CLONE_PATH: "$CI_BUILDS_DIR\\vtkm ci"
|
|
|
|
CCACHE_INSTALL_DIR: "$CI_PROJECT_DIR\\.gitlab"
|
2021-08-12 23:35:39 +00:00
|
|
|
artifacts:
|
|
|
|
reports:
|
|
|
|
junit:
|
|
|
|
- build/junit.xml
|
|
|
|
|
2021-02-05 15:36:53 +00:00
|
|
|
|
2021-02-05 15:35:58 +00:00
|
|
|
.windows_vs2019:
|
|
|
|
variables:
|
|
|
|
VCVARSALL: "${VS160COMNTOOLS}\\..\\..\\VC\\Auxiliary\\Build\\vcvarsall.bat"
|
|
|
|
VCVARSPLATFORM: "x64"
|
|
|
|
VCVARSVERSION: "14.25"
|
2020-04-21 20:22:22 +00:00
|
|
|
|
|
|
|
.cmake_build_windows: &cmake_build_windows
|
2021-02-05 15:35:58 +00:00
|
|
|
extends:
|
2021-02-05 15:36:53 +00:00
|
|
|
- .windows_build
|
2021-02-05 15:35:58 +00:00
|
|
|
- .windows_vs2019
|
2020-04-21 20:22:22 +00:00
|
|
|
stage: build
|
|
|
|
timeout: 2 hours
|
|
|
|
interruptible: true
|
|
|
|
before_script:
|
2021-07-27 23:15:27 +00:00
|
|
|
- Invoke-Expression -Command .gitlab/ci/config/cmake.ps1
|
2021-02-04 17:50:40 +00:00
|
|
|
- Invoke-Expression -Command .gitlab/ci/config/vcvarsall.ps1
|
2021-07-27 23:15:27 +00:00
|
|
|
- $pwdpath = $pwd.Path
|
2022-08-03 17:06:26 +00:00
|
|
|
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
2020-04-21 20:22:22 +00:00
|
|
|
- "cmake --version"
|
2022-08-03 17:06:26 +00:00
|
|
|
- "cmake -V -P .gitlab/ci/config/ccache.cmake"
|
2022-10-21 01:07:19 +00:00
|
|
|
- Set-Item -Force -Path "env:PATH" -Value "$env:CCACHE_INSTALL_DIR\ccache;$env:PATH"
|
2022-08-03 17:06:26 +00:00
|
|
|
- "cmake -V -P .gitlab/ci/config/ninja.cmake"
|
|
|
|
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$env:PATH"
|
2020-04-21 20:22:22 +00:00
|
|
|
- "cmake -V -P .gitlab/ci/config/gitlab_ci_setup.cmake"
|
|
|
|
- "ctest -VV -S .gitlab/ci/ctest_configure.cmake"
|
|
|
|
script:
|
|
|
|
- "ctest -VV -S .gitlab/ci/ctest_build.cmake"
|
|
|
|
artifacts:
|
|
|
|
expire_in: 24 hours
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
# The artifacts of the build.
|
|
|
|
- build/bin/
|
|
|
|
- build/include/
|
|
|
|
- build/lib/
|
2020-06-08 20:57:51 +00:00
|
|
|
- build/vtkm/thirdparty/diy/vtkmdiy/include
|
2021-07-27 04:33:56 +00:00
|
|
|
- build/config/
|
2020-04-21 20:22:22 +00:00
|
|
|
|
|
|
|
# CTest and CMake install files.
|
|
|
|
# Note: this also captures our CIState.cmake file
|
|
|
|
- build/CMakeCache.txt
|
2022-05-19 03:15:15 +00:00
|
|
|
- build/**/*.cmake
|
2020-04-21 20:22:22 +00:00
|
|
|
- build/Testing/
|
|
|
|
|
|
|
|
# CDash files.
|
|
|
|
- build/DartConfiguration.tcl
|
|
|
|
|
|
|
|
|
|
|
|
.cmake_test_windows: &cmake_test_windows
|
2021-02-05 15:35:58 +00:00
|
|
|
extends:
|
2021-02-05 15:36:53 +00:00
|
|
|
- .windows_build
|
2021-02-05 15:35:58 +00:00
|
|
|
- .windows_vs2019
|
2020-04-21 20:22:22 +00:00
|
|
|
stage: test
|
|
|
|
timeout: 50 minutes
|
|
|
|
interruptible: true
|
|
|
|
before_script:
|
2021-07-27 23:15:27 +00:00
|
|
|
- Invoke-Expression -Command .gitlab/ci/config/cmake.ps1
|
2021-02-04 17:50:40 +00:00
|
|
|
- Invoke-Expression -Command .gitlab/ci/config/vcvarsall.ps1
|
2021-07-27 23:15:27 +00:00
|
|
|
- $pwdpath = $pwd.Path
|
2022-08-03 17:06:26 +00:00
|
|
|
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
|
|
|
- "cmake --version"
|
|
|
|
- "cmake -V -P .gitlab/ci/config/ninja.cmake"
|
|
|
|
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$env:PATH"
|
2020-04-21 20:22:22 +00:00
|
|
|
script:
|
2021-07-27 23:15:27 +00:00
|
|
|
- "ctest -VV -S .gitlab/ci/ctest_test.cmake"
|
2020-04-21 20:22:22 +00:00
|
|
|
|
|
|
|
# Build on windows10 with Visual Studio
|
|
|
|
# Will have CUDA 10.2 once build issues are resolved
|
|
|
|
build:windows_vs2019:
|
|
|
|
tags:
|
2021-02-04 17:50:08 +00:00
|
|
|
- vtkm # Since this is a bare runner, pin to a project.
|
2021-02-05 15:36:53 +00:00
|
|
|
- nonconcurrent
|
2020-04-21 20:22:22 +00:00
|
|
|
- build
|
|
|
|
- windows
|
|
|
|
- shell
|
2021-02-04 17:50:40 +00:00
|
|
|
- vs2019
|
|
|
|
- msvc-19.25
|
2020-04-21 20:22:22 +00:00
|
|
|
- large-memory
|
|
|
|
extends:
|
|
|
|
- .cmake_build_windows
|
2021-10-18 18:36:16 +00:00
|
|
|
- .run_automatically
|
2020-04-21 20:22:22 +00:00
|
|
|
variables:
|
|
|
|
CMAKE_GENERATOR: "Ninja"
|
|
|
|
CMAKE_BUILD_TYPE: Release
|
|
|
|
# Disabled while we track down cub allocator issues with vtkm/io tests
|
|
|
|
# VTKM_SETTINGS: "cuda+turing"
|
|
|
|
VTKM_SETTINGS: "serial"
|
|
|
|
|
|
|
|
test:windows_vs2019:
|
|
|
|
tags:
|
2021-02-04 17:50:08 +00:00
|
|
|
- vtkm # Since this is a bare runner, pin to a project.
|
2021-02-05 15:36:53 +00:00
|
|
|
- nonconcurrent
|
2020-04-21 20:22:22 +00:00
|
|
|
- test
|
|
|
|
- windows
|
|
|
|
- shell
|
2021-02-04 17:50:40 +00:00
|
|
|
- vs2019
|
|
|
|
- msvc-19.25
|
2020-04-21 20:22:22 +00:00
|
|
|
- cuda-rt
|
|
|
|
- turing
|
|
|
|
extends:
|
|
|
|
- .cmake_test_windows
|
2021-10-18 18:36:16 +00:00
|
|
|
- .run_automatically
|
2020-04-21 20:22:22 +00:00
|
|
|
dependencies:
|
|
|
|
- build:windows_vs2019
|
|
|
|
needs:
|
|
|
|
- build:windows_vs2019
|