From 72a7697901eb1b4476fd9b23a0b895ea1d8a30fd Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 28 May 2020 11:29:47 -0400 Subject: gitlab-ci: pin macOS to a specific Xcode version --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5dde59..f4c4490 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,6 +73,9 @@ # 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/cmake ci" + # TODO: Factor this out so that each job selects the Xcode version to + # use so that different versions can be tested in a single pipeline. + DEVELOPER_DIR: "/Applications/Xcode-11.3.app/Contents/Developer" .macos_ninja: &macos_ninja extends: .macos -- cgit v0.12 From 35b29d356895b54ca34358a9bacca592903c3346 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 28 May 2020 12:19:20 -0400 Subject: ci: disable java detection --- .gitlab/ci/configure_macos_common.cmake | 9 +++++++++ .gitlab/ci/configure_macos_makefiles.cmake | 2 +- .gitlab/ci/configure_macos_ninja.cmake | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .gitlab/ci/configure_macos_common.cmake diff --git a/.gitlab/ci/configure_macos_common.cmake b/.gitlab/ci/configure_macos_common.cmake new file mode 100644 index 0000000..4b86d21 --- /dev/null +++ b/.gitlab/ci/configure_macos_common.cmake @@ -0,0 +1,9 @@ +# Our CI machines do not consistently have Java installed, so a build may +# detect that Java is available and working, but a test machine then not have a +# working Java installed. To work around this, just act as if Java is not +# available on any CI machine. +set(Java_JAVA_EXECUTABLE "" CACHE FILEPATH "") +set(Java_JAVAC_EXECUTABLE "" CACHE FILEPATH "") +set(Java_JAR_EXECUTABLE "" CACHE FILEPATH "") + +include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") diff --git a/.gitlab/ci/configure_macos_makefiles.cmake b/.gitlab/ci/configure_macos_makefiles.cmake index 33f0db0..0f4f194 100644 --- a/.gitlab/ci/configure_macos_makefiles.cmake +++ b/.gitlab/ci/configure_macos_makefiles.cmake @@ -1 +1 @@ -include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake") diff --git a/.gitlab/ci/configure_macos_ninja.cmake b/.gitlab/ci/configure_macos_ninja.cmake index 33f0db0..0f4f194 100644 --- a/.gitlab/ci/configure_macos_ninja.cmake +++ b/.gitlab/ci/configure_macos_ninja.cmake @@ -1 +1 @@ -include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake") -- cgit v0.12