@@ -190,7 +190,7 @@ jobs:
190
190
uses : actions/cache@v3
191
191
with :
192
192
path : metis/
193
- key : ${{matrix.msvc}}-metis-5.1.1-${{matrix.build_type}}
193
+ key : ${{matrix.msvc}}-metis-5.1.1-${{matrix.build_type}}-shared
194
194
195
195
- name : Download METIS
196
196
if : matrix.metis == 'metis' && steps.cache-metis.outputs.cache-hit != 'true'
@@ -207,15 +207,17 @@ jobs:
207
207
Copy-Item ${{github.workspace}}/GKlib-METIS-v5.1.1-DistDGL-0.5/* -Destination GKlib/ -Recurse
208
208
New-Item -ItemType directory -Path build
209
209
Copy-Item include -Destination build/xinclude -Recurse
210
+ (Get-Content CMakeLists.txt) -Replace 'add_subdirectory\("programs"\)', '' | Set-Content CMakeLists.txt
210
211
(Get-Content CMakeLists.txt) -Replace 'MSVC', 'FALSE' | Set-Content CMakeLists.txt
211
212
(Get-Content include/metis.h) -Replace '//#define', '#define' | Set-Content build/xinclude/metis.h
212
213
Pop-Location
213
214
214
215
cmake -S METIS-5.1.1-DistDGL-v0.5 -B build-metis `
215
216
-A x64 `
216
- -DBUILD_SHARED_LIBS=OFF `
217
217
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/metis `
218
+ -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON `
218
219
-DMETIS_INSTALL:BOOL=ON `
220
+ -DSHARED=ON `
219
221
-G "${{matrix.generator}}"
220
222
cmake --build build-metis `
221
223
--config ${{matrix.build_type}} `
@@ -229,6 +231,7 @@ jobs:
229
231
- name : Setup Environment
230
232
run : |
231
233
echo "${{github.workspace}}/install/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
234
+ echo "${{github.workspace}}/metis/lib" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
232
235
echo "VERSION_SUFFIX=$(git describe --tags)-${{matrix.marker}}-${{matrix.system}}-${{matrix.build_type}}-${{matrix.lib}}-${{matrix.components}}-${{matrix.metis}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
233
236
234
237
- name : Configure
0 commit comments