21
21
fail-fast : false
22
22
matrix :
23
23
os : [ubuntu-latest]
24
- config : [DebugNoSymbols, Release]
24
+ config : [Release]
25
25
threading : [TBB]
26
26
include :
27
27
- os : ubuntu-latest
@@ -30,12 +30,14 @@ jobs:
30
30
- name : Checkout repository
31
31
uses : actions/checkout@v4.1.6
32
32
with :
33
+ submodules : true
33
34
fetch-depth : 10
34
35
35
36
- name : Dependencies
36
37
run : |
37
38
sudo apt-get update
38
39
sudo apt-get -o Acquire::Retries=3 install ccache
40
+ sudo apt-get install libmpfr-dev libmpfr-doc libboost-all-dev
39
41
echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
40
42
41
43
- name : Cache Build
52
54
# ccache --max-size=1.0G
53
55
ccache -V && ccache --show-stats && ccache --zero-stats
54
56
55
- - name : Configure
57
+ - name : Configure-inflator
58
+ run : |
59
+ cd inflator
60
+ mkdir -p build
61
+ cd build
62
+ cmake .. \
63
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
64
+ -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
65
+ -DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
66
+ -DLIBIGL_WITH_OPENGL=OFF
67
+
68
+ - name : Build-inflator
69
+ run : cd inflator/build; make -j2; ccache --show-stats
70
+
71
+ - name : Configure-polyfem
56
72
run : |
57
73
mkdir -p build
58
74
cd build
62
78
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
63
79
-DPOLYFEM_THREADING=${{ matrix.threading }}
64
80
65
- - name : Build
81
+ - name : Build-polyfem
66
82
run : cd build; make -j2; ccache --show-stats
67
83
68
84
- name : Tests
@@ -83,18 +99,19 @@ jobs:
83
99
fail-fast : false
84
100
matrix :
85
101
os : [macos-latest, macos-14]
86
- config : [DebugNoSymbols, Release]
102
+ config : [Release]
87
103
threading : [TBB]
88
104
89
105
steps :
90
106
- name : Checkout repository
91
107
uses : actions/checkout@v4.1.6
92
108
with :
109
+ submodules : true
93
110
fetch-depth : 10
94
111
95
112
- name : Dependencies
96
113
run : |
97
- brew install ccache
114
+ brew install ccache boost
98
115
echo 'CACHE_PATH=~/Library/Caches/ccache' >> "$GITHUB_ENV"
99
116
100
117
- name : Cache Build
@@ -110,84 +127,32 @@ jobs:
110
127
ccache --max-size=1.0G
111
128
ccache -V && ccache --show-stats && ccache --zero-stats
112
129
113
- - name : Configure
130
+ - name : Configure-inflator
114
131
run : |
132
+ cd inflator
115
133
mkdir -p build
116
134
cd build
117
135
cmake .. \
118
136
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
119
137
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
120
138
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
121
- -DPOLYFEM_THREADING=${{ matrix.threading }}
122
-
123
- - name : Build
124
- run : cd build; make -j2; ccache --show-stats
125
-
126
- - name : Tests
127
- run : cd build; ctest --verbose --output-on-failure
128
-
129
- # ###################
130
- # Windows
131
- # ###################
132
-
133
- Windows :
134
- runs-on : windows-2022
135
- env :
136
- SCCACHE_IDLE_TIMEOUT : " 12000"
137
- strategy :
138
- fail-fast : false
139
- matrix :
140
- config : [DebugNoSymbols]
141
- threading : [CPP]
142
- steps :
143
- - name : Checkout repository
144
- uses : actions/checkout@v4.1.6
145
- with :
146
- fetch-depth : 10
139
+ -DLIBIGL_WITH_OPENGL=OFF
147
140
148
- - name : Install Ninja
149
- uses : seanmiddleditch/gha-setup-ninja@master
141
+ - name : Build-inflator
142
+ run : cd inflator/build; make -j2; ccache --show-stats
150
143
151
- - name : Dependencies
152
- run : |
153
- choco install ccache
154
- "CACHE_PATH=${env:LOCALAPPDATA}\ccache" | Out-File -FilePath $env:GITHUB_ENV -Append
155
-
156
- - name : Cache build
157
- id : cache-build
158
- uses : actions/cache@v4.0.2
159
- with :
160
- path : ${{ env.CACHE_PATH }}
161
- key : ${{ runner.os }}-${{ matrix.config }}-${{ matrix.threading }}-cache-${{ github.sha }}
162
- restore-keys : ${{ runner.os }}-${{ matrix.config }}-${{ matrix.threading }}-cache
163
-
164
- - name : Prepare ccache
144
+ - name : Configure-polyfem
165
145
run : |
166
- ccache --max-size=1.0G
167
- ccache -V && ccache --show-stats && ccache --zero-stats
146
+ mkdir -p build
147
+ cd build
148
+ cmake .. \
149
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
150
+ -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
151
+ -DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
152
+ -DPOLYFEM_THREADING=${{ matrix.threading }}
168
153
169
- - name : Configure
170
- shell : cmd
171
- run : |
172
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
173
- cmake -G Ninja ^
174
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
175
- -DCMAKE_CONFIGURATION_TYPES="Release;Debug;RelWithDebInfo;MinSizeRel;DebugNoSymbols" ^
176
- -DCMAKE_BUILD_TYPE=${{ matrix.config }} ^
177
- -DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="/Od" -DCMAKE_EXE_LINKER_FLAGS_DEBUGNOSYMBOLS="" ^
178
- -DPOLYFEM_WITH_CLIPPER=OFF ^
179
- -DPOLYFEM_THREADING=${{ matrix.threading }} ^
180
- -DPOLYSOLVE_WITH_CHOLMOD=OFF ^
181
- -DPOLYSOLVE_WITH_AMGCL=OFF ^
182
- -DPOLYSOLVE_WITH_MKL=ON ^
183
- -B build ^
184
- -S .
185
-
186
- - name : Build
187
- shell : cmd
188
- run : |
189
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
190
- cmake --build build -j2 && ccache --show-stats
154
+ - name : Build-polyfem
155
+ run : cd build; make -j2; ccache --show-stats
191
156
192
157
- name : Tests
193
158
run : cd build; ctest --verbose --output-on-failure
0 commit comments