diff options
author | Brad King <brad.king@kitware.com> | 2021-11-17 17:15:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-17 17:50:16 (GMT) |
commit | 3b9975d9b5a555c03ad546cd1390da63e1e92fd0 (patch) | |
tree | 5e70b6716fd97ffde0fecd6eea54d949e18f28fc /.gitlab | |
parent | ec68e3c5c6a232769e41234eed671cbd1e463a00 (diff) | |
download | CMake-3b9975d9b5a555c03ad546cd1390da63e1e92fd0.zip CMake-3b9975d9b5a555c03ad546cd1390da63e1e92fd0.tar.gz CMake-3b9975d9b5a555c03ad546cd1390da63e1e92fd0.tar.bz2 |
ci: Add JOM nightly CI job
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/configure_windows_vs2022_x64_jom.cmake | 1 | ||||
-rwxr-xr-x | .gitlab/ci/jom.ps1 | 15 | ||||
-rw-r--r-- | .gitlab/os-windows.yml | 28 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_windows_vs2022_x64_jom.cmake b/.gitlab/ci/configure_windows_vs2022_x64_jom.cmake new file mode 100644 index 0000000..166690a --- /dev/null +++ b/.gitlab/ci/configure_windows_vs2022_x64_jom.cmake @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/configure_windows_msvc_common.cmake") diff --git a/.gitlab/ci/jom.ps1 b/.gitlab/ci/jom.ps1 new file mode 100755 index 0000000..6c28005 --- /dev/null +++ b/.gitlab/ci/jom.ps1 @@ -0,0 +1,15 @@ +$erroractionpreference = "stop" + +$sha256sum = "128FDD846FE24F8594EED37D1D8929A0EA78DF563537C0C1B1861A635013FFF8" +$tarball = "unstable-jom-2018-12-12.zip" + +$outdir = $pwd.Path +$outdir = "$outdir\.gitlab" +$ProgressPreference = 'SilentlyContinue' +Invoke-WebRequest -Uri "https://cmake.org/files/dependencies/$tarball" -OutFile "$outdir\$tarball" +$hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256 +if ($hash.Hash -ne $sha256sum) { + exit 1 +} + +Expand-Archive -Path "$outdir\$tarball" -DestinationPath "$outdir\jom" diff --git a/.gitlab/os-windows.yml b/.gitlab/os-windows.yml index 5471683..e15bbe9 100644 --- a/.gitlab/os-windows.yml +++ b/.gitlab/os-windows.yml @@ -95,6 +95,14 @@ CMAKE_CI_BUILD_TYPE: Release CMAKE_CI_NIGHTLY_IGNORE_DEPS: "true" +.windows_jom: + extends: .windows + + variables: + CMAKE_GENERATOR: "NMake Makefiles JOM" + CMAKE_CI_BUILD_TYPE: Release + CMAKE_CI_NIGHTLY_IGNORE_DEPS: "true" + .windows_vs2022_x64_nmake: extends: - .windows_nmake @@ -103,6 +111,14 @@ variables: CMAKE_CONFIGURATION: windows_vs2022_x64_nmake +.windows_vs2022_x64_jom: + extends: + - .windows_jom + - .windows_vcvarsall_vs2022_x64 + + variables: + CMAKE_CONFIGURATION: windows_vs2022_x64_jom + .windows_msvc_v71_nmake: extends: .windows_nmake @@ -223,6 +239,18 @@ interruptible: true +.cmake_test_windows_jom: + stage: test-ext + + script: + - Invoke-Expression -Command .gitlab/ci/jom.ps1 + - $pwdpath = $pwd.Path + - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\jom;$env:PATH" + - Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1 + - build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_test_external.cmake + + interruptible: true + .cmake_test_windows_borland: stage: test-ext |