1010 fail-fast : false
1111 matrix :
1212 os : [windows-latest]
13- branch : [hipo-dev-tt -gk]
13+ branch : [hipo-tt-dev -gk]
1414
1515 steps :
1616 - uses : actions/checkout@v4
@@ -22,25 +22,33 @@ jobs:
2222 ref : ${{matrix.branch}}
2323 path : HiGHS
2424
25- # todo: add overlay
25+ - name : Checkout METIS
26+ uses : actions/checkout@v4
27+ with :
28+ repository : galabovaa/METIS
29+ ref : 510-w
30+ path : METIS
31+
2632 - name : Install METIS
27- shell : pwsh
33+ shell : bash
2834 run : |
29- vcpkg install metis gklib `
30- --overlay-ports="$env:GITHUB_WORKSPACE/ports/metis" `
31- --overlay-ports="$env:GITHUB_WORKSPACE/ports/gklib"
32-
33- # run: ls C:/vcpkg/packages/metis_x64-windows/
34- # run: ls C:/vcpkg/packages/metis_x64-windows/lib
35- # run: ls C:/vcpkg/packages/metis_x64-windows/share
36- # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
35+ INSTALLS_PREFIX=$(cygpath "${{ runner.workspace }}")/installs
36+ cd METIS
37+ pwd
38+ cmake -S. -B build -DGKLIB_PATH=$GITHUB_WORKSPACE/METIS/GKlib -DCMAKE_INSTALL_PREFIX=$INSTALLS_PREFIX
39+ cmake --build build --parallel --config Release
40+ cmake --install build --config Release
3741
3842 - name : Install OpenBLAS
3943 shell : pwsh
4044 run : vcpkg install openblas[threads]
4145
42- - name : Create build dir
43- run : cmake -E make_directory ${{runner.workspace}}/build
46+ - name : Create build and install dir
47+ working-directory : ${{runner.workspace}}
48+ shell : pwsh
49+ run : |
50+ mkdir build
51+ mkdir installs
4452
4553 - name : Configure cmake
4654 shell : pwsh
5159 -DHIPO=ON `
5260 -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
5361
62+ - name : Create installs dir
63+ run : |
64+ ls
65+ mkdir installs
66+ ls
67+
68+ - name : Configure cmake
69+ shell : bash
70+ working-directory : ${{runner.workspace}}/build
71+ run : |
72+ METIS_ROOT=$(cygpath "${{ runner.workspace }}")/installs
73+ cmake $GITHUB_WORKSPACE \
74+ -DHIPO=ON \
75+ -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake \
76+ -DMETIS_ROOT=$METIS_ROOT
77+
5478 # -DCMAKE_CXX_FLAGS="-I C:/vcpkg/packages/gklib_x64-windows/include/GKlib"
5579
5680 - name : Build
0 commit comments