boost->pybind11 #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
#build and test on the three OS | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
# build-linux: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Build Ubuntu | |
# shell: bash -l {0} | |
# run: | | |
# sudo apt-get install libarmadillo-dev libboost-all-dev libcgal-dev libmpfr-dev | |
# cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release | |
# cmake --build ${{github.workspace}}/build | |
# ctest --test-dir ${{github.workspace}}/build | |
Linux: | |
name: Linux | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
activate-environment: foo | |
environment-file: environment.yml | |
- name: Build for Linux | |
shell: bash -l {0} | |
run: | | |
cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INCLUDE_PATH=$CONDA_PREFIX/include -DCMAKE_LIBRARY_PATH=$CONDA_PREFIX/lib -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -Wno-dev | |
cmake --build ${{github.workspace}}/build | |
ctest --test-dir ${{github.workspace}}/build | |
MacOS: | |
name: MacOS | |
runs-on: "macos-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
activate-environment: foo | |
environment-file: environment.yml | |
- name: Build for MacOS | |
shell: bash -l {0} | |
run: | | |
cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INCLUDE_PATH=$CONDA_PREFIX/include -DCMAKE_LIBRARY_PATH=$CONDA_PREFIX/lib -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -Wno-dev | |
cmake --build ${{github.workspace}}/build | |
ctest --test-dir ${{github.workspace}}/build | |
Windows: | |
name: Windows | |
runs-on: "windows-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
activate-environment: foo | |
environment-file: environment_win.yml | |
- name: Build for Windows | |
shell: cmd | |
run: | | |
cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INCLUDE_PATH=$CONDA_PREFIX/include -DCMAKE_LIBRARY_PATH=$CONDA_PREFIX/lib -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -Wno-dev | |
cmake --build ${{github.workspace}}/build | |
ctest --test-dir ${{github.workspace}}/build |