@@ -198,7 +198,7 @@ jobs:
198198 shell : bash
199199 run : |
200200 cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage \
201- -DHIGHS_DIR=${{runner.workspace}}/installs \
201+ -DHIGHS_DIR=${{runner.workspace}}/installs/lib/cmake/highs \
202202 -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs
203203 cmake --build . --parallel
204204 cmake --install .
@@ -213,4 +213,83 @@ jobs:
213213 working-directory : ${{runner.workspace}}/install-find-highs
214214 shell : bash
215215 run : |
216- DYLD_LIBRARY_PATH=${{runner.workspace}}/installs/lib ./bin/main
216+ DYLD_LIBRARY_PATH=${{runner.workspace}}/installs/lib ./bin/main
217+
218+ fetch :
219+ runs-on : ${{ matrix.os }}
220+ strategy :
221+ fail-fast : false
222+ matrix :
223+ os : [ubuntu-latest]
224+ branch : [hipo-tt]
225+
226+ steps :
227+ - uses : actions/checkout@v4
228+
229+ - name : Checkout CMakeHighsFetchContent
230+ uses : actions/checkout@v4
231+ with :
232+ repository : galabovaa/CMakeHighsFetchContent
233+ ref : main
234+ path : CMakeHighsFetchContent
235+
236+ - name : Checkout METIS
237+ uses : actions/checkout@v4
238+ with :
239+ repository : galabovaa/METIS
240+ ref : 510-w
241+ path : METIS
242+
243+ - name : Create build and install dir
244+ run : |
245+ cmake -E make_directory ${{runner.workspace}}/build
246+ cmake -E make_directory ${{runner.workspace}}/installs
247+
248+ - name : Install METIS
249+ run : |
250+ cd METIS
251+ pwd
252+ cmake -S. -B build \
253+ -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
254+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
255+ -DCMAKE_BUILD_TYPE=${{ matrix.config }}
256+ cmake --build build --parallel
257+ cmake --install build
258+
259+ - name : Cache APT packages
260+ uses : actions/cache@v4
261+ with :
262+ path : |
263+ /var/cache/apt/archives
264+ /var/lib/apt/lists
265+ key : ${{ runner.os }}-apt-libopenblas
266+
267+ - name : Install OpenBLAS
268+ shell : bash
269+ run : |
270+ sudo apt update
271+ sudo apt install libopenblas-dev
272+
273+ - name : Configure CMake
274+ run : |
275+ cmake \
276+ -S ${{runner.workspace}}/highs-tests/CMakeHighsFetchContent \
277+ -B ${{runner.workspace}}/build \
278+ -DHIPO=ON \
279+ -DMETIS_ROOT=${{runner.workspace}}/installs \
280+ -DBRANCH=${{matrix.branch}} \
281+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
282+ cmake --build . --parallel
283+ cmake --install .
284+
285+ - name : Test
286+ working-directory : ${{runner.workspace}}/build
287+ shell : bash
288+ run : |
289+ ./main
290+
291+ - name : Test install
292+ working-directory : ${{runner.workspace}}/installs
293+ shell : bash
294+ run : |
295+ ./bin/main
0 commit comments