ci: Ensure git submodules are updated before running macOS CI

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 <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-06-30 01:31:02 +01:00
parent d2c715d7a8
commit dc2c769d5c

View File

@ -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