@@ -71,6 +71,117 @@ jobs:
7171 run : |
7272 ctest --parallel --timeout 300 --output-on-failure -C Release
7373
74+ debug :
75+ runs-on : ${{ matrix.os }}
76+ strategy :
77+ fail-fast : false
78+ matrix :
79+ os : [windows-latest]
80+
81+ steps :
82+ - uses : actions/checkout@v4
83+
84+ # 2. Set up caching for vcpkg
85+ - name : Cache vcpkg
86+ uses : actions/cache@v3
87+ with :
88+ path : |
89+ ./vcpkg/installed
90+ ./vcpkg/downloads
91+ key : vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
92+ restore-keys : |
93+ vcpkg-${{ runner.os }}-
94+
95+ - name : Install METIS
96+ run : vcpkg install metis
97+
98+ - name : Install OpenBLAS
99+ run : vcpkg install openblas
100+
101+ - name : Create build dir
102+ run : cmake -E make_directory ${{runner.workspace}}/build
103+
104+ - name : Configure cmake
105+ shell : bash
106+ working-directory : ${{runner.workspace}}/build
107+ run : |
108+ cmake $GITHUB_WORKSPACE \
109+ -DHIPO=ON \
110+ -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
111+
112+ - name : Build
113+ shell : bash
114+ working-directory : ${{runner.workspace}}/build
115+ run : |
116+ cmake --build . --parallel --config Debug
117+
118+ - name : Test executable
119+ shell : bash
120+ working-directory : ${{runner.workspace}}/build
121+ run : ./Debug/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
122+
123+ - name : Ctest
124+ shell : bash
125+ working-directory : ${{runner.workspace}}/build
126+ run : |
127+ ctest --parallel --timeout 300 --output-on-failure -C Debug
128+
129+ release_all_tests :
130+ runs-on : ${{ matrix.os }}
131+ strategy :
132+ fail-fast : false
133+ matrix :
134+ os : [windows-latest]
135+
136+ steps :
137+ - uses : actions/checkout@v4
138+
139+ # 2. Set up caching for vcpkg
140+ - name : Cache vcpkg
141+ uses : actions/cache@v3
142+ with :
143+ path : |
144+ ./vcpkg/installed
145+ ./vcpkg/downloads
146+ key : vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
147+ restore-keys : |
148+ vcpkg-${{ runner.os }}-
149+
150+ - name : Install METIS
151+ run : vcpkg install metis
152+
153+ - name : Install OpenBLAS
154+ run : vcpkg install openblas
155+
156+ - name : Create build dir
157+ run : cmake -E make_directory ${{runner.workspace}}/build
158+
159+ - name : Configure cmake
160+ shell : bash
161+ working-directory : ${{runner.workspace}}/build
162+ run : |
163+ cmake $GITHUB_WORKSPACE \
164+ -DHIPO=ON \
165+ -DALL_TESTS=ON \
166+ -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
167+
168+ - name : Build
169+ shell : bash
170+ working-directory : ${{runner.workspace}}/build
171+ run : |
172+ cmake --build . --parallel --config Release
173+
174+ - name : Test executable
175+ shell : bash
176+ working-directory : ${{runner.workspace}}/build
177+ run : ./Debug/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
178+
179+ - name : Ctest
180+ shell : bash
181+ working-directory : ${{runner.workspace}}/build
182+ run : |
183+ ctest --parallel --timeout 300 --output-on-failure -C Release
184+
74185 debug_all_tests :
75186 runs-on : ${{ matrix.os }}
76187 strategy :
@@ -104,7 +215,6 @@ jobs:
104215 - name : Configure cmake
105216 shell : bash
106217 working-directory : ${{runner.workspace}}/build
107- # Here is _DIR because with vcpkg CMake find_package works.
108218 run : |
109219 cmake $GITHUB_WORKSPACE \
110220 -DHIPO=ON \
0 commit comments