Skip to content

Commit 7fe4030

Browse files
committed
try gklib cmake, not with vcpkg: outdated there
1 parent 132feb4 commit 7fe4030

File tree

2 files changed

+196
-50
lines changed

2 files changed

+196
-50
lines changed
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
name: hipo-win-vcpkg-copy
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
release:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [windows-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# 2. Set up caching for vcpkg
17+
- name: Cache vcpkg
18+
uses: actions/cache@v3
19+
with:
20+
path: |
21+
./vcpkg/installed
22+
./vcpkg/downloads
23+
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
24+
restore-keys: |
25+
vcpkg-${{ runner.os }}-
26+
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
60+
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
65+
66+
- name: Ctest
67+
shell: bash
68+
working-directory: ${{runner.workspace}}/build
69+
run: |
70+
ctest --parallel --timeout 300 --output-on-failure -C Release
71+
72+
# debug:
73+
# runs-on: ${{ matrix.os }}
74+
# strategy:
75+
# fail-fast: false
76+
# matrix:
77+
# os: [windows-latest]
78+
79+
# steps:
80+
# - uses: actions/checkout@v4
81+
82+
# - name: Install METIS
83+
# run: vcpkg install metis
84+
85+
# # run: ls C:/vcpkg/packages/metis_x64-windows/
86+
# # run: ls C:/vcpkg/packages/metis_x64-windows/lib
87+
# # run: ls C:/vcpkg/packages/metis_x64-windows/share
88+
# # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
89+
90+
# - name: Install OpenBLAS
91+
# run: vcpkg install openblas
92+
93+
# - name: Create build dir
94+
# run: cmake -E make_directory ${{runner.workspace}}/build
95+
96+
# - name: Configure cmake
97+
# shell: bash
98+
# working-directory: ${{runner.workspace}}/build
99+
# # Here is _DIR because with vcpkg CMake find_package works.
100+
# run: |
101+
# cmake $GITHUB_WORKSPACE \
102+
# -DHIPO=ON \
103+
# -Dmetis_DIR=C:/vcpkg/packages/metis_x64-windows/share/metis \
104+
# -DGKlib_DIR=C:/vcpkg/packages/gklib_x64-windows/share/gklib \
105+
# -DOpenBLAS_DIR=C:/vcpkg/packages/openblas_x64-windows/share/openblas
106+
107+
# - name: Build
108+
# shell: bash
109+
# working-directory: ${{runner.workspace}}/build
110+
# run: |
111+
# cmake --build . --parallel --config Debug
112+
113+
# - name: Test executable
114+
# shell: bash
115+
# working-directory: ${{runner.workspace}}/build
116+
# run: ./Debug/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
117+
118+
# - name: Ctest
119+
# shell: bash
120+
# working-directory: ${{runner.workspace}}/build
121+
# run: |
122+
# ctest --parallel --timeout 300 --output-on-failure -C Debug

.github/workflows/hipo-win.yml

Lines changed: 74 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)