Skip to content

Commit 5279a15

Browse files
committed
ci: enforce strategy
1 parent a28bcaa commit 5279a15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/macos-linux-conda.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: CI - EigenPy for Mac OS X/Linux via Conda
1+
name: Conda-CI
22

33
on: [push,pull_request]
44

55
jobs:
66
eigenpy-conda:
7-
name: CI on ${{ matrix.os }} via Conda
7+
name: ${{ matrix.os }} - ${{ matrix.build_type }} ${{ matrix.cxx_options }}
88
runs-on: ${{ matrix.os }}
99
env:
1010
CCACHE_DIR: /github/home/.ccache # Enable ccache
@@ -13,6 +13,8 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: ["ubuntu-latest", "macos-latest"]
16+
cxx_options: ['', '-mavx2']
17+
build_type: [Release, Debug]
1618

1719
steps:
1820
- uses: actions/checkout@v2
@@ -29,7 +31,7 @@ jobs:
2931
- uses: actions/cache@v2
3032
with:
3133
path: ${{ env.CCACHE_DIR }}
32-
key: ccache-${{ matrix.os }}
34+
key: ccache-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}
3335

3436
- name: Install cmake and update conda
3537
shell: bash -l {0}
@@ -47,7 +49,7 @@ jobs:
4749
mkdir build
4850
cd build
4951
50-
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DGENERATE_PYTHON_STUBS=ON
52+
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DGENERATE_PYTHON_STUBS=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS=${{ matrix.cxx_options }}
5153
make
5254
make build_tests
5355
export CTEST_OUTPUT_ON_FAILURE=1

0 commit comments

Comments
 (0)