@@ -139,29 +139,29 @@ jobs:
139
139
uses : actions/cache@v3
140
140
with :
141
141
path : metis/
142
- key : ${{matrix.msvc}}-metis-5.1.1 -${{matrix.build_type}}-shared
142
+ key : ${{matrix.msvc}}-metis-5.1.0 -${{matrix.build_type}}-shared
143
143
144
144
- name : Download METIS
145
145
if : matrix.metis == 'metis' && steps.cache-metis.outputs.cache-hit != 'true'
146
146
run : |
147
- (New-Object System.Net.WebClient).DownloadFile("https://github.com/KarypisLab/METIS/archive/refs/tags/v5.1.1-DistDGL-v0.5.zip", "v5.1.1-DistDGL-v0.5.zip");
148
- (New-Object System.Net.WebClient).DownloadFile("https://github.com/KarypisLab/GKlib/archive/refs/tags/METIS-v5.1.1-DistDGL-0.5.zip", "v5.1.1-DistDGL-v0.5-GKlib.zip");
149
- 7z x v5.1.1-DistDGL-v0.5.zip;
150
- 7z x v5.1.1-DistDGL-v0.5-GKlib.zip;
147
+ (New-Object System.Net.WebClient).DownloadFile("http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz", "metis-5.1.0.tar.gz");
148
+ 7z x metis-5.1.0.tar.gz;
149
+ 7z x metis-5.1.0.tar;
151
150
152
151
- name : Build METIS
153
152
if : matrix.metis == 'metis' && steps.cache-metis.outputs.cache-hit != 'true'
154
153
run : |
155
- Push-Location METIS-5.1.1-DistDGL-v0.5
156
- Copy-Item ${{github.workspace}}/GKlib-METIS-v5.1.1-DistDGL-0.5/* -Destination GKlib/ -Recurse
157
- New-Item -ItemType directory -Path build
154
+ Push-Location metis-5.1.0
158
155
Copy-Item include -Destination build/xinclude -Recurse
159
156
(Get-Content CMakeLists.txt) -Replace 'add_subdirectory\("programs"\)', '' | Set-Content CMakeLists.txt
160
157
(Get-Content CMakeLists.txt) -Replace 'MSVC', 'FALSE' | Set-Content CMakeLists.txt
161
- (Get-Content include/metis.h) -Replace '//#define', '#define' | Set-Content build/xinclude/metis.h
158
+ (Get-Content include/metis.h) -Replace '^\s*#define COMPILER_MSC.*$', '' | Set-Content include/metis.h
159
+ Copy-Item include/metis.h -Destination build/xinclude/
160
+ (Get-Content GKlib/gk_arch.h) -Replace '#define rint.*$', '' | Set-Content GKlib/gk_arch.h
161
+ (Get-Content GKlib/gk_arch.h) -Replace '#define INFINITY.*$', '' | Set-Content GKlib/gk_arch.h
162
162
Pop-Location
163
163
164
- cmake -S METIS -5.1.1-DistDGL-v0.5 -B build-metis `
164
+ cmake -S metis -5.1.0 -B build-metis `
165
165
-A x64 `
166
166
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/metis `
167
167
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON `
0 commit comments