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