@@ -7,12 +7,13 @@ concurrency:
77 cancel-in-progress : true
88
99jobs :
10- gcc_relwithdebinfo :
10+ gcc :
1111 runs-on : ${{ matrix.os }}
1212 strategy :
1313 fail-fast : false
1414 matrix :
1515 os : [ubuntu-latest]
16+ config : [Debug, RelWithDebInfo]
1617 sanitizer : [Address, Thread, Leak]
1718 steps :
1819 - uses : actions/checkout@v6
@@ -24,21 +25,22 @@ jobs:
2425 shell : bash
2526 working-directory : ${{github.workspace}}/build
2627 run : |
27- cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
28+ cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
2829 cmake --build . -j2
2930
3031 - name : Run
3132 working-directory : ${{github.workspace}}/build
3233 shell : bash
3334 run : ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
3435
35- gcc_debug :
36+ clang :
3637 runs-on : ${{ matrix.os }}
3738 strategy :
3839 fail-fast : false
3940 matrix :
4041 # os: [ubuntu-latest, macos-latest]
4142 os : [ubuntu-latest]
43+ config : [Debug, RelWithDebInfo]
4244 sanitizer : [Address, Thread, Leak]
4345 steps :
4446 - uses : actions/checkout@v6
@@ -50,22 +52,22 @@ jobs:
5052 shell : bash
5153 working-directory : ${{github.workspace}}/build
5254 run : |
53- cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g ++
55+ cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang ++
5456 cmake --build . -j2
5557
5658 - name : Run
5759 working-directory : ${{github.workspace}}/build
5860 shell : bash
5961 run : ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
6062
61- clang_relwithdebinfo :
63+ no_hipo_macos :
6264 runs-on : ${{ matrix.os }}
6365 strategy :
6466 fail-fast : false
6567 matrix :
66- # os: [ubuntu-latest, macos-latest]
67- os : [ubuntu-latest ]
68- sanitizer : [Address, Thread, Leak ]
68+ os : [macos-latest]
69+ config : [Debug, RelWithDebInfo ]
70+ sanitizer : [Address, Thread]
6971 steps :
7072 - uses : actions/checkout@v6
7173
@@ -76,50 +78,66 @@ jobs:
7678 shell : bash
7779 working-directory : ${{github.workspace}}/build
7880 run : |
79- cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
80- cmake --build . -j2
81+ cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DDEBUG_MEMORY=${{ matrix.sanitizer }}
82+ cmake --build . -j3
8183
8284 - name : Run
8385 working-directory : ${{github.workspace}}/build
8486 shell : bash
8587 run : ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
8688
87- clang_debug :
89+ hipo :
8890 runs-on : ${{ matrix.os }}
91+
8992 strategy :
9093 fail-fast : false
9194 matrix :
92- # os: [ubuntu-latest, macos-latest]
9395 os : [ubuntu-latest]
96+ config : [Debug, RelWithDebInfo]
97+ all_tests : [ON]
9498 sanitizer : [Address, Thread, Leak]
99+
95100 steps :
96101 - uses : actions/checkout@v6
97102
98103 - name : Create Build Environment
99104 run : cmake -E make_directory ${{github.workspace}}/build
100105
101- - name : Configure CMake and Build
102- shell : bash
106+ - name : Configure CMake
107+ working-directory : ${{github.workspace}}/build
108+ run : |
109+ cmake $GITHUB_WORKSPACE -DHIPO=ON -DBUILD_OPENBLAS=ON \
110+ -DALL_TESTS=${{ matrix.all_tests }} \
111+ -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
112+ -DDEBUG_MEMORY=${{ matrix.sanitizer }} \
113+ -DNO_AVX512=ON \
114+ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
115+ -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
116+
117+
118+ - name : Build
103119 working-directory : ${{github.workspace}}/build
104120 run : |
105- cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
106121 cmake --build . -j2
107122
108- - name : Run
123+ - name : Test executable
109124 working-directory : ${{github.workspace}}/build
110- shell : bash
111- run : ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
125+ run : ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
112126
113- hipo :
127+ - name : Test hipo
128+ working-directory : ${{github.workspace}}/build
129+ run : |
130+ ./bin/unit_tests [highs_hipo]
131+
132+ hipo_macos :
114133 runs-on : ${{ matrix.os }}
115134
116135 strategy :
117136 fail-fast : false
118137 matrix :
119- os : [ubuntu-latest]
120- config : [Debug]
121- all_tests : [ON]
122- sanitizer : [Address, Thread, Leak]
138+ os : [macos-latest]
139+ config : [Debug, RelWithDebInfo]
140+ sanitizer : [Address, Thread]
123141
124142 steps :
125143 - uses : actions/checkout@v6
@@ -130,18 +148,15 @@ jobs:
130148 - name : Configure CMake
131149 working-directory : ${{github.workspace}}/build
132150 run : |
133- cmake $GITHUB_WORKSPACE -DHIPO=ON -DBUILD_OPENBLAS=ON \
134- -DALL_TESTS=${{ matrix.all_tests }} \
151+ cmake $GITHUB_WORKSPACE -DHIPO=ON \
135152 -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
136153 -DDEBUG_MEMORY=${{ matrix.sanitizer }} \
137- -DNO_AVX512=ON \
138- -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
139-
154+ -DALL_TESTS=ON
140155
141156 - name : Build
142157 working-directory : ${{github.workspace}}/build
143158 run : |
144- cmake --build . -j2
159+ cmake --build . -j3
145160
146161 - name : Test executable
147162 working-directory : ${{github.workspace}}/build
0 commit comments