Skip to content

Commit 696680a

Browse files
committed
add ALL_TESTS runs to macos and linux
1 parent 7f649c9 commit 696680a

File tree

2 files changed

+342
-0
lines changed

2 files changed

+342
-0
lines changed

.github/workflows/hipo-macos.yml

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,157 @@ jobs:
149149
working-directory: ${{runner.workspace}}/build
150150
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
151151

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+
152303
- name: Ctest
153304
working-directory: ${{runner.workspace}}/build
154305
run: |

.github/workflows/hipo-ubuntu.yml

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,197 @@ jobs:
189189
working-directory: ${{runner.workspace}}/build
190190
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
191191

192+
- name: Ctest
193+
working-directory: ${{runner.workspace}}/build
194+
run: |
195+
ctest --parallel --timeout 300 --output-on-failure
196+
197+
release_all_tests:
198+
runs-on: ${{ matrix.os }}
199+
strategy:
200+
fail-fast: false
201+
matrix:
202+
os: [ubuntu-latest]
203+
204+
steps:
205+
- uses: actions/checkout@v4
206+
207+
- name: Checkout GKlib
208+
uses: actions/checkout@v4
209+
with:
210+
repository: KarypisLab/GKlib
211+
ref: master
212+
path: GKlib
213+
214+
- name: Checkout METIS
215+
uses: actions/checkout@v4
216+
with:
217+
repository: KarypisLab/METIS
218+
ref: master
219+
path: METIS
220+
221+
- name: Create installs dir
222+
working-directory: ${{runner.workspace}}
223+
run: |
224+
mkdir installs
225+
ls
226+
227+
- name: Install GKLIB
228+
run: |
229+
cd GKlib
230+
make config shared=1 prefix=${{runner.workspace}}/installs
231+
make
232+
make install
233+
234+
# - name: Check installs
235+
# working-directory: ${{runner.workspace}}
236+
# run: |
237+
# cd installs
238+
# ls
239+
# ls lib
240+
241+
- name: Copy GKlib shared (bug)
242+
working-directory: ${{runner.workspace}}
243+
run: |
244+
cd installs
245+
cd lib
246+
ln libGKlib.so.0 libGKlib.so
247+
ls
248+
249+
- name: Install METIS
250+
run: |
251+
cd METIS
252+
make config shared=1 prefix=${{runner.workspace}}/installs
253+
make
254+
make install
255+
256+
# no default blas available on runner
257+
258+
- name: Cache APT packages
259+
uses: actions/cache@v4
260+
with:
261+
path: |
262+
/var/cache/apt/archives
263+
/var/lib/apt/lists
264+
key: ${{ runner.os }}-apt-libopenblas
265+
266+
- name: Install OpenBLAS
267+
shell: bash
268+
run: |
269+
sudo apt update
270+
sudo apt install libopenblas-dev
271+
272+
- name: Create Build Environment
273+
run: cmake -E make_directory ${{runner.workspace}}/build
274+
275+
- name: Configure CMake
276+
working-directory: ${{runner.workspace}}/build
277+
run: |
278+
cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
279+
-DMETIS_ROOT=${{runner.workspace}}/installs \
280+
-DGKLIB_ROOT=${{runner.workspace}}/installs
281+
282+
- name: Build
283+
working-directory: ${{runner.workspace}}/build
284+
run: |
285+
cmake --build . --parallel
286+
287+
- name: Test executable
288+
working-directory: ${{runner.workspace}}/build
289+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
290+
291+
- name: Ctest
292+
working-directory: ${{runner.workspace}}/build
293+
run: |
294+
ctest --parallel --timeout 300 --output-on-failure
295+
296+
debug_all_tests:
297+
runs-on: ${{ matrix.os }}
298+
strategy:
299+
fail-fast: false
300+
matrix:
301+
os: [ubuntu-latest]
302+
303+
steps:
304+
- uses: actions/checkout@v4
305+
306+
- name: Checkout GKlib
307+
uses: actions/checkout@v4
308+
with:
309+
repository: KarypisLab/GKlib
310+
ref: master
311+
path: GKlib
312+
313+
- name: Checkout METIS
314+
uses: actions/checkout@v4
315+
with:
316+
repository: KarypisLab/METIS
317+
ref: master
318+
path: METIS
319+
320+
- name: Create installs dir
321+
working-directory: ${{runner.workspace}}
322+
run: |
323+
mkdir installs
324+
ls
325+
326+
- name: Install GKLIB
327+
run: |
328+
cd GKlib
329+
make config shared=1 prefix=${{runner.workspace}}/installs
330+
make
331+
make install
332+
333+
- name: Copy GKlib shared (bug)
334+
working-directory: ${{runner.workspace}}
335+
run: |
336+
cd installs
337+
cd lib
338+
ln libGKlib.so.0 libGKlib.so
339+
ls
340+
341+
- name: Install METIS
342+
shell: bash
343+
run: |
344+
cd METIS
345+
make config shared=1 prefix=${{runner.workspace}}/installs
346+
make
347+
make install
348+
349+
- name: Cache APT packages
350+
uses: actions/cache@v4
351+
with:
352+
path: |
353+
/var/cache/apt/archives
354+
/var/lib/apt/lists
355+
key: ${{ runner.os }}-apt-libopenblas
356+
357+
- name: Install OpenBLAS
358+
shell: bash
359+
run: |
360+
sudo apt update
361+
sudo apt install libopenblas-dev
362+
363+
- name: Create Build Environment
364+
run: cmake -E make_directory ${{runner.workspace}}/build
365+
366+
- name: Configure CMake
367+
working-directory: ${{runner.workspace}}/build
368+
run: |
369+
cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
370+
-DMETIS_ROOT=${{runner.workspace}}/installs \
371+
-DGKLIB_ROOT=${{runner.workspace}}/installs \
372+
-DCMAKE_BUILD_TYPE=Debug
373+
374+
- name: Build
375+
working-directory: ${{runner.workspace}}/build
376+
run: |
377+
cmake --build . --parallel
378+
379+
- name: Test executable
380+
working-directory: ${{runner.workspace}}/build
381+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
382+
192383
- name: Ctest
193384
working-directory: ${{runner.workspace}}/build
194385
run: |

0 commit comments

Comments
 (0)