updated repo name, and docs #58
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: Full build (MacOS) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: "macos-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-python@v4 | |
id: installpython | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
${{ steps.installpython.outputs.python-path }} -m pip install packaging | |
${{ steps.installpython.outputs.python-path }} -m pip install numpy | |
${{ steps.installpython.outputs.python-path }} -m pip install scipy | |
${{ steps.installpython.outputs.python-path }} -m pip install cvxopt | |
${{ steps.installpython.outputs.python-path }} -m pip install polyscope | |
${{ steps.installpython.outputs.python-path }} -m pip install libigl | |
${{ steps.installpython.outputs.python-path }} -m pip install scikit-learn | |
${{ steps.installpython.outputs.python-path }} -m pip install --force-reinstall opencv-python | |
${{ steps.installpython.outputs.python-path }} -m pip install mediapipe | |
- name: Install c++ bindings | |
shell: bash -l {0} | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=${{ steps.installpython.outputs.python-path }} .. | |
cmake --build "." --config Release | |
- name: Run unit tests | |
shell: bash -l {0} | |
run: | | |
${{ steps.installpython.outputs.python-path }} -m pip install tetgen | |
${{ steps.installpython.outputs.python-path }} -m unittest -v | |
# see https://github.com/libigl/libigl/blob/main/.github/workflows/continuous.yml |