Skip to content

Commit b8c3ae3

Browse files
committed
clean up workflows
1 parent e08a3a7 commit b8c3ae3

File tree

6 files changed

+148
-224
lines changed

6 files changed

+148
-224
lines changed

.github/workflows/hipo-macos.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,18 @@ jobs:
6464
-DMETIS_ROOT=${{runner.workspace}}/installs \
6565
-DGKLIB_ROOT=${{runner.workspace}}/installs
6666
67-
- name: Build and ctest
67+
- name: Build
6868
working-directory: ${{runner.workspace}}/build
6969
run: |
7070
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: |
7179
ctest --parallel --timeout 300 --output-on-failure
7280
7381
debug:
@@ -132,8 +140,16 @@ jobs:
132140
-DGKLIB_ROOT=${{runner.workspace}}/installs \
133141
-DCMAKE_BUILD_TYPE=Debug
134142
135-
- name: Build and ctest
143+
- name: Build
136144
working-directory: ${{runner.workspace}}/build
137145
run: |
138146
cmake --build . --parallel
139-
ctest --parallel --timeout 300 --output-on-failure
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
Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: hipo-linux
1+
name: hipo-ubuntu
22

33
on: [push, pull_request]
44

@@ -47,12 +47,12 @@ jobs:
4747
make
4848
make install
4949
50-
- name: Check METIS and GKlib
51-
working-directory: ${{runner.workspace}}
52-
run: |
53-
cd installs
54-
ls
55-
ls lib
50+
# - name: Check METIS and GKlib
51+
# working-directory: ${{runner.workspace}}
52+
# run: |
53+
# cd installs
54+
# ls
55+
# ls lib
5656

5757
# no default blas available on runner
5858

@@ -65,17 +65,25 @@ jobs:
6565
- name: Create Build Environment
6666
run: cmake -E make_directory ${{runner.workspace}}/build
6767

68-
- name: Configure CMake, build and ctest
68+
- name: Configure CMake
6969
working-directory: ${{runner.workspace}}/build
7070
run: |
7171
cmake $GITHUB_WORKSPACE -DHIPO=ON \
7272
-DMETIS_ROOT=${{runner.workspace}}/installs \
7373
-DGKLIB_ROOT=${{runner.workspace}}/installs
7474
75-
- name: Build and ctest
75+
- name: Build
7676
working-directory: ${{runner.workspace}}/build
7777
run: |
7878
cmake --build . --parallel
79+
80+
- name: Test executable
81+
working-directory: ${{runner.workspace}}/build
82+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
83+
84+
- name: Ctest
85+
working-directory: ${{runner.workspace}}/build
86+
run: |
7987
ctest --parallel --timeout 300 --output-on-failure
8088
8189
debug:
@@ -148,8 +156,16 @@ jobs:
148156
-DGKLIB_ROOT=${{runner.workspace}}/installs \
149157
-DCMAKE_BUILD_TYPE=Debug
150158
151-
- name: Build and ctest
159+
- name: Build
152160
working-directory: ${{runner.workspace}}/build
153161
run: |
154162
cmake --build . --parallel
155-
ctest --parallel --timeout 300 --output-on-failure
163+
164+
- name: Test executable
165+
working-directory: ${{runner.workspace}}/build
166+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
167+
168+
- name: Ctest
169+
working-directory: ${{runner.workspace}}/build
170+
run: |
171+
ctest --parallel --timeout 300 --output-on-failure

.github/workflows/hipo-win.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: proto-win
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: [windows-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install METIS
17+
run: vcpkg install metis
18+
19+
# run: ls C:/vcpkg/packages/metis_x64-windows/
20+
# run: ls C:/vcpkg/packages/metis_x64-windows/lib
21+
# run: ls C:/vcpkg/packages/metis_x64-windows/share
22+
# run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
23+
24+
- name: Install OpenBLAS
25+
run: vcpkg install openblas
26+
27+
- name: Create build dir
28+
run: cmake -E make_directory ${{runner.workspace}}/build
29+
30+
- name: Configure cmake
31+
shell: bash
32+
working-directory: ${{runner.workspace}}/build
33+
# Here is _DIR because with vcpkg CMake find_package works.
34+
run: |
35+
cmake $GITHUB_WORKSPACE \
36+
-DHIPO=ON \
37+
-Dmetis_DIR=C:/vcpkg/packages/metis_x64-windows/share/metis \
38+
-DGKlib_DIR=C:/vcpkg/packages/gklib_x64-windows/share/gklib \
39+
-DOpenBLAS_DIR=C:/vcpkg/packages/openblas_x64-windows/share/openblas
40+
41+
- name: Build
42+
working-directory: ${{runner.workspace}}/build
43+
run: |
44+
cmake --build . --parallel --config Release
45+
46+
- name: Test executable
47+
working-directory: ${{runner.workspace}}/build
48+
run: ./Release/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
49+
50+
- name: Ctest
51+
working-directory: ${{runner.workspace}}/build
52+
run: |
53+
ctest --parallel --timeout 300 --output-on-failure -C Release
54+
55+
debug:
56+
runs-on: ${{ matrix.os }}
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
os: [windows-latest]
61+
62+
steps:
63+
- uses: actions/checkout@v4
64+
65+
- name: Install METIS
66+
run: vcpkg install metis
67+
68+
# run: ls C:/vcpkg/packages/metis_x64-windows/
69+
# run: ls C:/vcpkg/packages/metis_x64-windows/lib
70+
# run: ls C:/vcpkg/packages/metis_x64-windows/share
71+
# run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
72+
73+
- name: Install OpenBLAS
74+
run: vcpkg install openblas
75+
76+
- name: Create build dir
77+
run: cmake -E make_directory ${{runner.workspace}}/build
78+
79+
- name: Configure cmake
80+
shell: bash
81+
working-directory: ${{runner.workspace}}/build
82+
# Here is _DIR because with vcpkg CMake find_package works.
83+
run: |
84+
cmake $GITHUB_WORKSPACE \
85+
-DHIPO=ON \
86+
-Dmetis_DIR=C:/vcpkg/packages/metis_x64-windows/share/metis \
87+
-DGKlib_DIR=C:/vcpkg/packages/gklib_x64-windows/share/gklib \
88+
-DOpenBLAS_DIR=C:/vcpkg/packages/openblas_x64-windows/share/openblas
89+
90+
- name: Build
91+
working-directory: ${{runner.workspace}}/build
92+
run: |
93+
cmake --build . --parallel --config Debug
94+
95+
- name: Test executable
96+
working-directory: ${{runner.workspace}}/build
97+
run: ./Debug/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
98+
99+
- name: Ctest
100+
working-directory: ${{runner.workspace}}/build
101+
run: |
102+
ctest --parallel --timeout 300 --output-on-failure -C Debug

.github/workflows/proto-macos.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/proto-ubuntu.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)