Skip to content
Snippets Groups Projects
Commit 990a9996 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] CMake presets on Mac jobs.

parent 23bf464a
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,7 @@ build gui mac:
- when: manual
allow_failure: true
variables:
BUILD_DIR: "build-gui-mac"
CMAKE_PRESET: release-gui
CMAKE_ARGS: >-
-DOGS_USE_CONAN=auto
-DOGS_BUILD_CLI=OFF
-DOGS_BUILD_GUI=ON
-DOGS_BUILD_UTILS=ON
-DOGS_USE_NETCDF=OFF
-DOGS_INSTALL_DEPENDENCIES=ON
......@@ -3,9 +3,9 @@ build mac:
tags:
- mac
variables:
BUILD_DIR: "build-mac"
BUILD_DIR: "build/mac-release"
CMAKE_PRESET: release
CMAKE_ARGS: >-
-DOGS_BUILD_UTILS=ON
-DOGS_USE_PYTHON=ON
-DOGS_INSTALL_DEPENDENCIES=ON
-DOGS_USE_XDMF=ON
-B $BUILD_DIR
......@@ -10,10 +10,10 @@ compiler warnings:
- job: build mac
script:
- exit_code=0
- cd build-no-unity
- cd build/no-unity
- "if [[ $(cat make.output | grep warning -i) ]]; then printf 'There were GCC compiler warnings:\n\n'; cat make.output | grep warning -i; exit_code=1; fi"
- cd ../build-win
- cd ../win-release
- "if [[ $(cat make.output | grep ': warning' -i) ]]; then printf 'There were MSVC compiler warnings:\n\n'; cat make.output | grep ': warning' -i; exit_code=1; fi"
- cd ../build-mac
- cd ../mac-release
- "if [[ $(cat make.output | grep warning -i) ]]; then printf 'There were Clang (macOS) compiler warnings:\n\n'; cat make.output | grep warning -i; exit_code=1; fi"
- exit $exit_code
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment