1+ name : hipo-macos
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ release :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ os : [macos-latest]
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Checkout GKlib
17+ uses : actions/checkout@v4
18+ with :
19+ repository : KarypisLab/GKlib
20+ ref : master
21+ path : GKlib
22+
23+ - name : Checkout METIS
24+ uses : actions/checkout@v4
25+ with :
26+ repository : KarypisLab/METIS
27+ ref : master
28+ path : METIS
29+
30+ - name : Create installs dir
31+ working-directory : ${{runner.workspace}}
32+ run : |
33+ mkdir installs
34+ ls
35+
36+ - name : Install GKLIB
37+ run : |
38+ cd GKlib
39+ make config prefix=${{runner.workspace}}/installs
40+ make
41+ make install
42+
43+ - name : Install METIS
44+ run : |
45+ cd METIS
46+ make config prefix=${{runner.workspace}}/installs
47+ make
48+ make install
49+
50+ - name : Check METIS and GKlib
51+ working-directory : ${{runner.workspace}}
52+ run : |
53+ cd installs
54+ ls
55+ ls lib
56+
57+ - name : Create Build Environment
58+ run : cmake -E make_directory ${{runner.workspace}}/build
59+
60+ - name : Configure CMake
61+ working-directory : ${{runner.workspace}}/build
62+ run : |
63+ cmake $GITHUB_WORKSPACE -DHIPO=ON \
64+ -DMETIS_ROOT=${{runner.workspace}}/installs \
65+ -DGKLIB_ROOT=${{runner.workspace}}/installs
66+
67+ - name : Build
68+ working-directory : ${{runner.workspace}}/build
69+ run : |
70+ cmake --build . --parallel
71+
72+ - name : Test executable
73+ working-directory : ${{runner.workspace}}/build
74+ run : ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
75+
76+ - name : Ctest
77+ working-directory : ${{runner.workspace}}/build
78+ run : |
79+ ctest --parallel --timeout 300 --output-on-failure
80+
81+ debug :
82+ runs-on : ${{ matrix.os }}
83+ strategy :
84+ fail-fast : false
85+ matrix :
86+ os : [macos-latest]
87+
88+ steps :
89+ - uses : actions/checkout@v4
90+
91+ - name : Checkout GKlib
92+ uses : actions/checkout@v4
93+ with :
94+ repository : KarypisLab/GKlib
95+ ref : master
96+ path : GKlib
97+
98+ - name : Checkout METIS
99+ uses : actions/checkout@v4
100+ with :
101+ repository : KarypisLab/METIS
102+ ref : master
103+ path : METIS
104+
105+ - name : Create installs dir
106+ working-directory : ${{runner.workspace}}
107+ run : |
108+ mkdir installs
109+ ls
110+
111+ - name : Install GKLIB
112+ run : |
113+ cd GKlib
114+ make config prefix=${{runner.workspace}}/installs
115+ make
116+ make install
117+
118+ - name : Install METIS
119+ run : |
120+ cd METIS
121+ make config prefix=${{runner.workspace}}/installs
122+ make
123+ make install
124+
125+ - name : Check METIS and GKlib
126+ working-directory : ${{runner.workspace}}
127+ run : |
128+ cd installs
129+ ls
130+ ls lib
131+
132+ - name : Create Build Environment
133+ run : cmake -E make_directory ${{runner.workspace}}/build
134+
135+ - name : Configure CMake
136+ working-directory : ${{runner.workspace}}/build
137+ run : |
138+ cmake $GITHUB_WORKSPACE -DHIPO=ON \
139+ -DMETIS_ROOT=${{runner.workspace}}/installs \
140+ -DGKLIB_ROOT=${{runner.workspace}}/installs \
141+ -DCMAKE_BUILD_TYPE=Debug
142+
143+ - name : Build
144+ working-directory : ${{runner.workspace}}/build
145+ run : |
146+ cmake --build . --parallel
147+
148+ - name : Test executable
149+ working-directory : ${{runner.workspace}}/build
150+ run : ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
151+
152+ - name : Ctest
153+ working-directory : ${{runner.workspace}}/build
154+ run : |
155+ ctest --parallel --timeout 300 --output-on-failure
156+
157+ release_all_tests :
158+ runs-on : ${{ matrix.os }}
159+ strategy :
160+ fail-fast : false
161+ matrix :
162+ os : [macos-latest]
163+
164+ steps :
165+ - uses : actions/checkout@v4
166+
167+ - name : Checkout GKlib
168+ uses : actions/checkout@v4
169+ with :
170+ repository : KarypisLab/GKlib
171+ ref : master
172+ path : GKlib
173+
174+ - name : Checkout METIS
175+ uses : actions/checkout@v4
176+ with :
177+ repository : KarypisLab/METIS
178+ ref : master
179+ path : METIS
180+
181+ - name : Create installs dir
182+ working-directory : ${{runner.workspace}}
183+ run : |
184+ mkdir installs
185+ ls
186+
187+ - name : Install GKLIB
188+ run : |
189+ cd GKlib
190+ make config prefix=${{runner.workspace}}/installs
191+ make
192+ make install
193+
194+ - name : Install METIS
195+ run : |
196+ cd METIS
197+ make config prefix=${{runner.workspace}}/installs
198+ make
199+ make install
200+
201+ - name : Check METIS and GKlib
202+ working-directory : ${{runner.workspace}}
203+ run : |
204+ cd installs
205+ ls
206+ ls lib
207+
208+ - name : Create Build Environment
209+ run : cmake -E make_directory ${{runner.workspace}}/build
210+
211+ - name : Configure CMake
212+ working-directory : ${{runner.workspace}}/build
213+ run : |
214+ cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
215+ -DMETIS_ROOT=${{runner.workspace}}/installs \
216+ -DGKLIB_ROOT=${{runner.workspace}}/installs
217+
218+ - name : Build
219+ working-directory : ${{runner.workspace}}/build
220+ run : |
221+ cmake --build . --parallel
222+
223+ - name : Test executable
224+ working-directory : ${{runner.workspace}}/build
225+ run : ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
226+
227+ - name : Ctest
228+ working-directory : ${{runner.workspace}}/build
229+ run : |
230+ ctest --parallel --timeout 300 --output-on-failure
231+
232+ debug_all_tests :
233+ runs-on : ${{ matrix.os }}
234+ strategy :
235+ fail-fast : false
236+ matrix :
237+ os : [macos-latest]
238+
239+ steps :
240+ - uses : actions/checkout@v4
241+
242+ - name : Checkout GKlib
243+ uses : actions/checkout@v4
244+ with :
245+ repository : KarypisLab/GKlib
246+ ref : master
247+ path : GKlib
248+
249+ - name : Checkout METIS
250+ uses : actions/checkout@v4
251+ with :
252+ repository : KarypisLab/METIS
253+ ref : master
254+ path : METIS
255+
256+ - name : Create installs dir
257+ working-directory : ${{runner.workspace}}
258+ run : |
259+ mkdir installs
260+ ls
261+
262+ - name : Install GKLIB
263+ run : |
264+ cd GKlib
265+ make config prefix=${{runner.workspace}}/installs
266+ make
267+ make install
268+
269+ - name : Install METIS
270+ run : |
271+ cd METIS
272+ make config prefix=${{runner.workspace}}/installs
273+ make
274+ make install
275+
276+ - name : Check METIS and GKlib
277+ working-directory : ${{runner.workspace}}
278+ run : |
279+ cd installs
280+ ls
281+ ls lib
282+
283+ - name : Create Build Environment
284+ run : cmake -E make_directory ${{runner.workspace}}/build
285+
286+ - name : Configure CMake
287+ working-directory : ${{runner.workspace}}/build
288+ run : |
289+ cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
290+ -DMETIS_ROOT=${{runner.workspace}}/installs \
291+ -DGKLIB_ROOT=${{runner.workspace}}/installs \
292+ -DCMAKE_BUILD_TYPE=Debug
293+
294+ - name : Build
295+ working-directory : ${{runner.workspace}}/build
296+ run : |
297+ cmake --build . --parallel
298+
299+ - name : Test executable
300+ working-directory : ${{runner.workspace}}/build
301+ run : ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
302+
303+ - name : Ctest
304+ working-directory : ${{runner.workspace}}/build
305+ run : |
306+ ctest --parallel --timeout 300 --output-on-failure
0 commit comments