-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (39 loc) · 1.26 KB
/
macos_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
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 numpy
${{ steps.installpython.outputs.python-path }} -m pip install scipy
${{ steps.installpython.outputs.python-path }} -m pip install scikit-image
- 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