-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (48 loc) · 1.35 KB
/
linux_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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.96.0"
python -m pip install scipy
python -m pip install scikit-image
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