diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml new file mode 100644 index 0000000000000000000000000000000000000000..e71d3a22bd706447d24008215fe13b48deb88c10 --- /dev/null +++ b/.github/workflows/macos-linux-conda.yml @@ -0,0 +1,55 @@ +name: CI - EigenPy for Mac OS X/Linux via Conda + +on: [push,pull_request] + +jobs: + eigenpy-conda: + name: CI - EigenPy on ${{ matrix.os }} via Conda + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest", "macos-latest"] + + steps: + - uses: actions/checkout@v2 + + - name: Checkout submodules + run: | + git submodule update --init + + - uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: eigenpy + auto-update-conda: true + environment-file: .github/workflows/conda/environment.yml + python-version: 3.8 + + - name: Install cmake and update conda + shell: bash -l {0} + run: | + conda activate eigenpy + conda install cmake -c main + + - name: Build EigenPy + shell: bash -l {0} + run: | + conda activate eigenpy + echo $CONDA_PREFIX + + mkdir build + cd build + + cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) + make + make build_tests + export CTEST_OUTPUT_ON_FAILURE=1 + make test + make install + + - name: Uninstall EigenPy + shell: bash -l {0} + run: | + cd build + make uninstall