Skip to content

Commit 23c760b

Browse files
committed
ci: add macos/linux via Conda
1 parent 503d7d6 commit 23c760b

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI - EigenPy for Mac OS X/Linux via Conda
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
eigenpy-conda:
7+
name: CI - EigenPy on ${{ matrix.os }} via Conda
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ["ubuntu-latest", "macos-latest"]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Checkout submodules
19+
run: |
20+
git submodule update --init
21+
22+
- uses: conda-incubator/setup-miniconda@v2
23+
with:
24+
activate-environment: eigenpy
25+
auto-update-conda: true
26+
environment-file: .github/workflows/conda/environment.yml
27+
python-version: 3.8
28+
29+
- name: Install cmake and update conda
30+
shell: bash -l {0}
31+
run: |
32+
conda activate eigenpy
33+
conda install cmake -c main
34+
35+
- name: Build EigenPy
36+
shell: bash -l {0}
37+
run: |
38+
conda activate eigenpy
39+
echo $CONDA_PREFIX
40+
41+
mkdir build
42+
cd build
43+
44+
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3)
45+
make
46+
make build_tests
47+
export CTEST_OUTPUT_ON_FAILURE=1
48+
make test
49+
make install
50+
51+
- name: Uninstall EigenPy
52+
shell: bash -l {0}
53+
run: |
54+
cd build
55+
make uninstall

0 commit comments

Comments
 (0)