@@ -13,61 +13,85 @@ jobs:
1313 steps :
1414 - uses : actions/checkout@v4
1515
16- # 2. Set up caching for vcpkg
17- - name : Cache vcpkg
18- uses : actions/cache@v3
16+ - name : Checkout GKlib
17+ uses : actions/checkout@v4
1918 with :
20- path : |
21- ./vcpkg/installed
22- ./vcpkg/downloads
23- key : vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
24- restore-keys : |
25- vcpkg-${{ runner.os }}-
19+ repository : KarypisLab/GKlib
20+ ref : master
21+ path : GKlib
2622
27- - name : Install GKlib
28- run : vcpkg install gklib
29-
30- - name : ls
31- run : ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
32-
33- - name : Install METIS
34- run : vcpkg install metis
35-
36- # run: ls C:/vcpkg/packages/metis_x64-windows/
37- # run: ls C:/vcpkg/packages/metis_x64-windows/lib
38- # run: ls C:/vcpkg/packages/metis_x64-windows/share
39- # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
40-
41- - name : Install OpenBLAS
42- run : vcpkg install openblas
43-
44- - name : Create build dir
45- run : cmake -E make_directory ${{runner.workspace}}/build
46-
47- - name : Configure cmake
48- shell : bash
49- working-directory : ${{runner.workspace}}/build
50- run : |
51- cmake $GITHUB_WORKSPACE \
52- -DHIPO=ON \
53- -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
54-
55- - name : Build
56- shell : bash
57- working-directory : ${{runner.workspace}}/build
58- run : |
59- cmake --build . --parallel --config Release
23+ - name : Checkout METIS
24+ uses : actions/checkout@v4
25+ with :
26+ repository : KarypisLab/METIS
27+ ref : master
28+ path : METIS
6029
61- - name : Test executable
62- shell : bash
63- working-directory : ${{runner.workspace}}/build
64- run : ./Release/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
30+ - name : Create installs dir
31+ working-directory : ${{runner.workspace}}
32+ run : |
33+ mkdir installs
34+ ls
6535
66- - name : Ctest
67- shell : bash
68- working-directory : ${{runner.workspace}}/build
36+ - name : Install GKLIB
6937 run : |
70- ctest --parallel --timeout 300 --output-on-failure -C Release
38+ cd GKlib
39+ cmake -S. -B build -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
40+ cmake --build build --parallel --config Release
41+ cmake --install --build
42+
43+ # - name: Check installs
44+ # working-directory: ${{runner.workspace}}
45+ # run: |
46+ # cd installs
47+ # ls
48+ # ls lib
49+
50+ # - name: Copy GKlib shared (bug)
51+ # working-directory: ${{runner.workspace}}
52+ # run: |
53+ # cd installs
54+ # cd lib
55+ # ln libGKlib.so.0 libGKlib.so
56+ # ls
57+
58+ # - name: Install METIS
59+ # run: |
60+ # cd METIS
61+ # make config shared=1 prefix=${{runner.workspace}}/installs
62+ # make
63+ # make install
64+
65+ # - name: Install OpenBLAS
66+ # run: vcpkg install openblas
67+
68+ # - name: Create build dir
69+ # run: cmake -E make_directory ${{runner.workspace}}/build
70+
71+ # - name: Configure cmake
72+ # shell: bash
73+ # working-directory: ${{runner.workspace}}/build
74+ # run: |
75+ # cmake $GITHUB_WORKSPACE \
76+ # -DHIPO=ON \
77+ # -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
78+
79+ # - name: Build
80+ # shell: bash
81+ # working-directory: ${{runner.workspace}}/build
82+ # run: |
83+ # cmake --build . --parallel --config Release
84+
85+ # - name: Test executable
86+ # shell: bash
87+ # working-directory: ${{runner.workspace}}/build
88+ # run: ./Release/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
89+
90+ # - name: Ctest
91+ # shell: bash
92+ # working-directory: ${{runner.workspace}}/build
93+ # run: |
94+ # ctest --parallel --timeout 300 --output-on-failure -C Release
7195
7296 # debug:
7397 # runs-on: ${{ matrix.os }}
0 commit comments