-
Notifications
You must be signed in to change notification settings - Fork 15
87 lines (75 loc) · 2.51 KB
/
windows_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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Full build (Windows)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.7'
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: "3.7"
- name: Install dependencies (Windows)
shell: bash -l {0}
run: |
python -m pip install numpy
python -m pip install scipy
python -m pip install scikit-image
# - name: Install dependencies (Windows)
# shell: bash -l {0}
# run: |
# conda info
# conda install numpy
# conda install scipy=1.6.1
# conda install -c conda-forge igl
# conda install -c conda-forge matplotlib
# python -m pip install --upgrade pip
# python -m pip install polyscope
# python -m pip install tetgen
# python -m pip install scikit-image
# conda install -c conda-forge cython
# conda install -c conda-forge suitesparse
# pip install git+https://github.com/EmJay276/scikit-sparse
# conda install scipy=1.6.1
- name: Install c++ bindings
shell: bash -l {0}
run: |
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. &&
cmake --build "." --config Release
# - name: Debug
# shell: bash -l {0}
# run: |
# cd D:
# ls
# cd a
# ls
- name: copying dlls
shell: bash -l {0}
run: |
cp .\\build\\_deps\\gmp-src\\lib\\libgmp-10.dll .\\build\\.
cp .\\build\\_deps\\mpfr-src\\lib\\libmpfr-4.dll .\\build\\.
cp .\\build\\_deps\\gmp-src\\lib\\libgmp-10.dll .\\build\\Release\\.
cp .\\build\\_deps\\mpfr-src\\lib\\libmpfr-4.dll .\\build\\Release\\.
cp .\\build\\_deps\\gmp-src\\lib\\libgmp-10.dll .
cp .\\build\\_deps\\mpfr-src\\lib\\libmpfr-4.dll .
- name: Run unit tests
shell: bash -l {0}
run: |
python -m pip install tetgen
python -m unittest -v test/test_sdf_flow.py
# python -c "import gpytoolbox"
# python -c "import gpytoolbox_bindings"
# python -m unittest -v
# see https://github.com/libigl/libigl/blob/main/.github/workflows/continuous.yml