From dc2c769d5c9b08de7014b954627149f9662d9f7b Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 30 Jun 2022 01:31:02 +0100 Subject: [PATCH] ci: Ensure git submodules are updated before running macOS CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the macOS CI jobs are run on a machine which isn’t using a pre-made container image, we can’t ship a cached version of the subproject, so it has to be pulled as a git submodule. GitLab doesn’t do that by default unless you set `GIT_SUBMODULE_STRATEGY` to something other than `none`. See https://docs.gitlab.com/ee/ci/git_submodules.html Signed-off-by: Philip Withnall --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0195ed30f..8fe839a75 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -435,6 +435,8 @@ macos: tags: - macos needs: [] + variables: + GIT_SUBMODULE_STRATEGY: normal before_script: - bash .gitlab-ci/show-execution-environment.sh - pip3 install --user meson==0.60.1