Commit a9df2ee8 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1360 Add a job for a macOS build.

parent e8783e5b
......@@ -7,7 +7,7 @@ stages:
# Todo: Doxygen doc should be published with pages.
.build_template: &build_template
.build_template_linux: &build_template_linux
stage: build_and_test
image: registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}
cache:
......@@ -25,6 +25,25 @@ stages:
- cd build && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/linux.cmake --cmake_args="-G Ninja" --third_party_directory=/opt --mode=${MODE} --library_type=${LIB_NATURE} --morefem_as_single_library=${IS_ONLY_ONE_LIB}
- ninja |& tee compilation.log
- ninja test # as artifact are limited in size, I can't unfortunately use a separate stage...
.build_template_macos: &build_template_macos
stage: build_and_test
cache:
key: "cache_${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-${IS_ONLY_ONE_LIB}"
untracked: true
paths:
- build
artifacts:
name: "artifact_${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-${IS_ONLY_ONE_LIB}"
expire_in: 8 hours
paths:
- build/compilation.log
script:
- mkdir -p build
- cd build && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/macos_apple_clang.cmake --cmake_args="-G Ninja" --third_party_directory=/Volumes/Data/ci/opt/${MODE} --mode=${MODE} --library_type=${LIB_NATURE} --morefem_as_single_library=${IS_ONLY_ONE_LIB}
- ninja |& tee compilation.log
- ninja test # as artifact are limited in size, I can't unfortunately use a separate stage...
.run_doxygen_template: &run_doxygen_template
......@@ -86,7 +105,7 @@ stages:
build-Ubuntu-gcc-debug-shared-several_libs:
<<: *build_template
<<: *build_template_linux
variables:
OS: "ubuntu"
COMPILER: "gcc"
......@@ -108,7 +127,7 @@ check_warning_Ubuntu-gcc-debug-shared-several_libs:
build-Ubuntu-gcc-release-static-one_lib:
<<: *build_template
<<: *build_template_linux
variables:
OS: "ubuntu"
COMPILER: "gcc"
......@@ -130,7 +149,7 @@ check_warning_Ubuntu-gcc-release-static-one_lib:
build-Fedora-clang-debug-static-one_lib:
<<: *build_template
<<: *build_template_linux
variables:
OS: "fedora"
COMPILER: "clang"
......@@ -152,7 +171,7 @@ check_warning_Fedora-clang-debug-static-one_lib:
build-Fedora-clang-release-shared-one_lib:
<<: *build_template
<<: *build_template_linux
variables:
OS: "fedora"
COMPILER: "clang"
......@@ -174,7 +193,7 @@ check_warning_Fedora-clang-release-shared-one_lib:
build-Fedora-gcc-debug-static-one_lib:
<<: *build_template
<<: *build_template_linux
variables:
OS: "fedora"
COMPILER: "gcc"
......@@ -192,7 +211,29 @@ check_warning_Fedora-gcc-debug-static-one_lib:
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
IS_ONLY_ONE_LIB: "True"
build-macos-clang-debug-static-one_lib:
<<: *build_template_macos
variables:
OS: "macOS"
COMPILER: "clang"
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
check_warning_macos-clang-debug-static-one_lib:
<<: *check_compilation_warning_template
dependencies:
- build-macos-clang-debug-static-one_lib
variables:
OS: "macOS"
COMPILER: "clang"
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
complete_doxygen:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment