Skip to content

Commit 0e9da86

Browse files
committed
try conda-forge
1 parent 25d02f4 commit 0e9da86

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
name: hipo-win-conda
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+
- name: Setup Conda
17+
uses: conda-incubator/setup-miniconda@v2
18+
19+
- name: Install GKlib via Conda
20+
run: |
21+
conda install -y -c conda-forge gklib
22+
23+
# - name: Check installs
24+
# working-directory: ${{runner.workspace}}
25+
# run: |
26+
# cd installs
27+
# ls
28+
# ls lib
29+
30+
# - name: Copy GKlib shared (bug)
31+
# working-directory: ${{runner.workspace}}
32+
# run: |
33+
# cd installs
34+
# cd lib
35+
# ln libGKlib.so.0 libGKlib.so
36+
# ls
37+
38+
- name: Install METIS
39+
run: |
40+
conda install -y -c conda-forge metis
41+
42+
# - name: Install OpenBLAS
43+
# run: vcpkg install openblas
44+
45+
# - name: Create build dir
46+
# run: cmake -E make_directory ${{runner.workspace}}/build
47+
48+
# - name: Configure cmake
49+
# shell: bash
50+
# working-directory: ${{runner.workspace}}/build
51+
# run: |
52+
# cmake $GITHUB_WORKSPACE \
53+
# -DHIPO=ON \
54+
# -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
55+
56+
# - name: Build
57+
# shell: bash
58+
# working-directory: ${{runner.workspace}}/build
59+
# run: |
60+
# cmake --build . --parallel --config Release
61+
62+
# - name: Test executable
63+
# shell: bash
64+
# working-directory: ${{runner.workspace}}/build
65+
# run: ./Release/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
66+
67+
# - name: Ctest
68+
# shell: bash
69+
# working-directory: ${{runner.workspace}}/build
70+
# run: |
71+
# ctest --parallel --timeout 300 --output-on-failure -C Release
72+
73+
# debug:
74+
# runs-on: ${{ matrix.os }}
75+
# strategy:
76+
# fail-fast: false
77+
# matrix:
78+
# os: [windows-latest]
79+
80+
# steps:
81+
# - uses: actions/checkout@v4
82+
83+
# - name: Install METIS
84+
# run: vcpkg install metis
85+
86+
# # run: ls C:/vcpkg/packages/metis_x64-windows/
87+
# # run: ls C:/vcpkg/packages/metis_x64-windows/lib
88+
# # run: ls C:/vcpkg/packages/metis_x64-windows/share
89+
# # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
90+
91+
# - name: Install OpenBLAS
92+
# run: vcpkg install openblas
93+
94+
# - name: Create build dir
95+
# run: cmake -E make_directory ${{runner.workspace}}/build
96+
97+
# - name: Configure cmake
98+
# shell: bash
99+
# working-directory: ${{runner.workspace}}/build
100+
# # Here is _DIR because with vcpkg CMake find_package works.
101+
# run: |
102+
# cmake $GITHUB_WORKSPACE \
103+
# -DHIPO=ON \
104+
# -Dmetis_DIR=C:/vcpkg/packages/metis_x64-windows/share/metis \
105+
# -DGKlib_DIR=C:/vcpkg/packages/gklib_x64-windows/share/gklib \
106+
# -DOpenBLAS_DIR=C:/vcpkg/packages/openblas_x64-windows/share/openblas
107+
108+
# - name: Build
109+
# shell: bash
110+
# working-directory: ${{runner.workspace}}/build
111+
# run: |
112+
# cmake --build . --parallel --config Debug
113+
114+
# - name: Test executable
115+
# shell: bash
116+
# working-directory: ${{runner.workspace}}/build
117+
# run: ./Debug/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
118+
119+
# - name: Ctest
120+
# shell: bash
121+
# working-directory: ${{runner.workspace}}/build
122+
# run: |
123+
# ctest --parallel --timeout 300 --output-on-failure -C Debug

0 commit comments

Comments
 (0)