Skip to content

Commit c76e297

Browse files
fabinschjcarpent
authored andcommitted
ci: add pipeline with c++14 for macos
1 parent 76977e5 commit c76e297

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci-linux-osx-win-conda.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ on:
66

77
jobs:
88
build-with-conda:
9-
name: '[conda:${{ matrix.os }}:${{ matrix.build_type }}]'
9+
name: '[conda:${{ matrix.os }}:${{ matrix.build_type }}:c++${{ matrix.cxx_std }}]'
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
build_type: [Release, Debug]
1515
name: [ubuntu-latest, macos-latest, windows-2019-clang-cl, windows-latest]
16+
cxx_std: [17]
1617

1718
include:
1819
- name: ubuntu-latest
@@ -24,6 +25,10 @@ jobs:
2425
compiler: clang-cl
2526
- name: windows-latest
2627
os: windows-latest
28+
- name: macos-latest
29+
os: macos-latest
30+
build_type: Release
31+
cxx_std: 14
2732

2833
steps:
2934
- uses: actions/checkout@v2
@@ -84,7 +89,7 @@ jobs:
8489
git submodule update --init
8590
mkdir build
8691
cd build
87-
cmake .. -GNinja -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_PYTHON_INTERFACE:BOOL=ON -DPYTHON_EXECUTABLE=$(which python3) -DINSTALL_DOCUMENTATION:BOOL=ON -DTEST_JULIA_INTERFACE:BOOL=ON
92+
cmake .. -GNinja -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_STANDARD=${{ matrix.cxx_std }} -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_PYTHON_INTERFACE:BOOL=ON -DPYTHON_EXECUTABLE=$(which python3) -DINSTALL_DOCUMENTATION:BOOL=ON -DTEST_JULIA_INTERFACE:BOOL=ON
8893
8994
- name: Configure [Conda/Windows-2019]
9095
if: contains(matrix.os, 'windows-2019')

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ endif(INITIALIZE_EIGEN_WITH_NAN)
7474

7575
# set CXX standard
7676
if(DEFINED CMAKE_CXX_STANDARD)
77-
check_minimal_cxx_standard(17 ENFORCE)
77+
check_minimal_cxx_standard(14 ENFORCE)
7878
else()
7979
set(CMAKE_CXX_STANDARD 17)
8080
endif()

0 commit comments

Comments
 (0)