Merge pull request #150 from sgsellan/docs #637
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 (Linux) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: '3.9' | |
# sudo apt-get update | |
# sudo apt-get upgrade | |
# sudo apt-get purge grub\* | |
# sudo apt-get install grub-efi | |
# sudo apt-get autoremove | |
# sudo update-grub | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
python -m pip install "numpy>=1.16.5,<2.2" | |
python -m pip install "scipy>=1.6,<1.15" | |
python -m pip install scikit-image | |
python -m pip install scs | |
sudo apt-get install \ | |
libmpfr-dev \ | |
libgmp-dev \ | |
libgl1-mesa-dev \ | |
xorg-dev \ | |
libglu1-mesa-dev | |
- name: Install c++ bindings | |
shell: bash -l {0} | |
run: | | |
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && | |
cmake --build "." --config Release | |
- name: Run unit tests | |
shell: bash -l {0} | |
run: | | |
python -m pip install tetgen | |
python -m unittest -v | |
# see https://github.com/libigl/libigl/blob/main/.github/workflows/continuous.yml |