ci: Enable --werror on macOS

There are no compiler warnings when building on macOS CI at the moment,
so let’s keep it that way by turning any future ones into errors.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-11-17 15:43:59 +00:00
parent 97e3d366bc
commit b891266d69

View File

@ -436,7 +436,6 @@ macos:
- pip3 install --user ninja - pip3 install --user ninja
- export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH - export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
script: script:
# FIXME: Add --werror
# FIXME: Use --wrap-mode=default so we download dependencies each time, # FIXME: Use --wrap-mode=default so we download dependencies each time,
# until the macOS runner is a VM where we can use a pre-made image which # until the macOS runner is a VM where we can use a pre-made image which
# already contains the dependencies. See: # already contains the dependencies. See:
@ -444,6 +443,7 @@ macos:
# - https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/225 # - https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/225
- meson ${MESON_COMMON_OPTIONS} - meson ${MESON_COMMON_OPTIONS}
--wrap-mode=default --wrap-mode=default
--werror
_build _build
- ninja -C _build - ninja -C _build
# FIXME: Multiple unit tests currently fails # FIXME: Multiple unit tests currently fails