2023-07-24 19:54:11 +00:00
|
|
|
##=============================================================================
|
|
|
|
##
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
|
|
|
##
|
|
|
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
## PURPOSE. See the above copyright notice for more information.
|
|
|
|
##
|
|
|
|
##=============================================================================
|
|
|
|
|
2022-07-11 18:06:29 +00:00
|
|
|
# Ad-hoc build that runs in macos machines
|
2023-08-07 17:51:03 +00:00
|
|
|
build:macos_xcode14:
|
2022-07-11 18:06:29 +00:00
|
|
|
extends:
|
2023-08-07 17:51:03 +00:00
|
|
|
- .macos_xcode14
|
2022-07-11 20:09:13 +00:00
|
|
|
- .macos_build_tags
|
2022-07-11 18:06:29 +00:00
|
|
|
- .cmake_build_macos
|
|
|
|
- .run_automatically
|
|
|
|
|
2023-08-07 17:51:03 +00:00
|
|
|
test:macos_xcode14:
|
2022-07-11 18:06:29 +00:00
|
|
|
extends:
|
2023-08-07 17:51:03 +00:00
|
|
|
- .macos_xcode14
|
2022-07-11 20:09:13 +00:00
|
|
|
- .macos_build_tags
|
2022-07-11 18:06:29 +00:00
|
|
|
- .cmake_test_macos
|
|
|
|
- .run_automatically
|
|
|
|
needs:
|
2023-08-07 17:51:03 +00:00
|
|
|
- build:macos_xcode14
|
2022-07-11 18:06:29 +00:00
|
|
|
dependencies:
|
2023-08-07 17:51:03 +00:00
|
|
|
- build:macos_xcode14
|
2022-07-11 18:06:29 +00:00
|
|
|
|
2023-08-07 17:51:03 +00:00
|
|
|
.macos_xcode14:
|
2022-07-11 18:06:29 +00:00
|
|
|
variables:
|
|
|
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
|
|
|
CMAKE_GENERATOR: Ninja
|
|
|
|
|
|
|
|
CC: gcc
|
|
|
|
CXX: g++
|
2023-08-07 17:51:03 +00:00
|
|
|
DEVELOPER_DIR: "/Applications/Xcode-14.2.app/Contents/Developer"
|
2023-04-25 15:48:54 +00:00
|
|
|
GIT_CLONE_PATH: "$CI_BUILDS_DIR/vtk-m-ci"
|
2022-07-11 18:06:29 +00:00
|
|
|
VTKM_SETTINGS: "64bit_floats+shared+ccache"
|
|
|
|
|
|
|
|
.cmake_build_macos:
|
|
|
|
stage: build
|
|
|
|
interruptible: true
|
|
|
|
variables:
|
|
|
|
CCACHE_BASEDIR: "$CI_PROJECT_DIR"
|
|
|
|
CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
|
|
|
|
|
|
|
|
# -isystem= is not affected by CCACHE_BASEDIR, thus we must ignore it
|
|
|
|
CCACHE_IGNOREOPTIONS: "-isystem=*"
|
|
|
|
CCACHE_COMPILERCHECK: "content"
|
|
|
|
CCACHE_NOHASHDIR: "true"
|
|
|
|
CCACHE_RESHARE: "true"
|
2022-10-21 01:07:19 +00:00
|
|
|
CCACHE_INSTALL_DIR: "$CI_PROJECT_DIR/.gitlab"
|
2022-07-11 18:06:29 +00:00
|
|
|
before_script:
|
|
|
|
- .gitlab/ci/config/cmake.sh
|
|
|
|
- export PATH=$PWD/.gitlab/cmake/bin:$PATH
|
2022-07-12 20:03:01 +00:00
|
|
|
- "cmake -VV -P .gitlab/ci/config/ccache.cmake"
|
|
|
|
- export PATH=$PWD/.gitlab/ccache:$PATH
|
2022-07-13 19:45:59 +00:00
|
|
|
- "cmake -VV -P .gitlab/ci/config/ninja.cmake"
|
|
|
|
- export PATH=$PWD/.gitlab:$PATH
|
2022-07-11 18:06:29 +00:00
|
|
|
- "cmake --version"
|
2022-07-12 20:03:01 +00:00
|
|
|
- "ccache --version"
|
|
|
|
- "ninja --version"
|
2022-07-11 18:06:29 +00:00
|
|
|
- "cmake -V -P .gitlab/ci/config/fetch_vtkm_tags.cmake"
|
|
|
|
- "cmake -V -P .gitlab/ci/config/gitlab_ci_setup.cmake"
|
|
|
|
- "ctest -VV -S .gitlab/ci/ctest_configure.cmake"
|
|
|
|
script:
|
|
|
|
- "ctest -VV -S .gitlab/ci/ctest_build.cmake"
|
2023-04-26 22:48:13 +00:00
|
|
|
- cmake -P .gitlab/ci/check_warnings.cmake || exit 47
|
2022-07-11 18:06:29 +00:00
|
|
|
after_script:
|
|
|
|
- ccache -v -s
|
|
|
|
- ccache -z
|
|
|
|
extends:
|
|
|
|
- .cmake_build_artifacts
|
2023-04-26 22:48:13 +00:00
|
|
|
- .warning_policy
|
2022-07-11 18:06:29 +00:00
|
|
|
|
|
|
|
.cmake_test_macos:
|
|
|
|
stage: test
|
|
|
|
interruptible: true
|
|
|
|
before_script:
|
|
|
|
- .gitlab/ci/config/cmake.sh
|
2022-07-13 19:45:59 +00:00
|
|
|
- export PATH=.gitlab/cmake/bin:$PATH
|
|
|
|
- "cmake -VV -P .gitlab/ci/config/ninja.cmake"
|
|
|
|
- export PATH=$PWD/.gitlab:$PATH
|
2022-07-11 18:06:29 +00:00
|
|
|
- cmake --version
|
2022-07-13 19:45:59 +00:00
|
|
|
- ninja --version
|
2022-07-11 18:06:29 +00:00
|
|
|
script:
|
|
|
|
- "ctest $CTEST_TIMEOUT -VV -S .gitlab/ci/ctest_test.cmake"
|
|
|
|
extends:
|
|
|
|
- .cmake_test_artifacts
|
2023-09-06 22:36:26 +00:00
|
|
|
variables:
|
|
|
|
CTEST_EXCLUSIONS: >-
|
|
|
|
smoke_test_make_built_against_test_install
|
|
|
|
smoke_test_pkgconfig_make_built_against_test_install
|
2022-07-11 20:09:13 +00:00
|
|
|
|
|
|
|
.macos_build_tags:
|
|
|
|
tags:
|
2024-07-17 18:06:37 +00:00
|
|
|
- vtkm
|
2022-12-21 14:35:02 +00:00
|
|
|
- macos-x86_64
|
2023-08-07 17:51:03 +00:00
|
|
|
- xcode-14.2
|
2022-07-11 20:09:13 +00:00
|
|
|
- nonconcurrent
|