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.
|
|
|
|
GIT_CLONE_PATH: "$CI_BUILDS_DIR\\vtkm ci"
|
|
|
|
|
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-02-04 17:50:40 +00:00
|
|
|
- Invoke-Expression -Command .gitlab/ci/config/vcvarsall.ps1
|
2020-04-21 20:22:22 +00:00
|
|
|
- "cmake --version"
|
|
|
|
- "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.
|
|
|
|
# XXX(globbing): Can be simplified with support from
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab-runner/issues/4840
|
|
|
|
#
|
|
|
|
# Note: this also captures our CIState.cmake file
|
|
|
|
- build/CMakeCache.txt
|
|
|
|
- build/*.cmake
|
|
|
|
- build/*/*.cmake
|
|
|
|
- build/*/*/*.cmake
|
|
|
|
- build/*/*/*/*.cmake
|
|
|
|
- build/*/*/*/*/*.cmake
|
|
|
|
- build/*/*/*/*/*/*.cmake
|
|
|
|
- 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-02-04 17:50:40 +00:00
|
|
|
- Invoke-Expression -Command .gitlab/ci/config/vcvarsall.ps1
|
2020-04-21 20:22:22 +00:00
|
|
|
script:
|
|
|
|
#Need to use our custom ctest-latest symlink
|
|
|
|
#This will allow us to use 3.17+ which has support
|
|
|
|
#for running failed tests multiple times so failures
|
|
|
|
#due to system load are not reported
|
|
|
|
- "ctest-latest -VV -S .gitlab/ci/ctest_test.cmake"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
- .only-default
|
|
|
|
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
|
|
|
|
- .only-default
|
|
|
|
dependencies:
|
|
|
|
- build:windows_vs2019
|
|
|
|
needs:
|
|
|
|
- build:windows_vs2019
|