Skip to content

Commit 78edb4a

Browse files
committed
install metis shared
1 parent baee492 commit 78edb4a

File tree

1 file changed

+91
-90
lines changed

1 file changed

+91
-90
lines changed

.github/workflows/hipo-ubuntu.yml

Lines changed: 91 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ jobs:
4646
run: |
4747
cd METIS
4848
make clean
49-
export LD_LIBRARY_PATH=/home/runner/work/HiGHS/installs/lib:$LD_LIBRARY_PATH
50-
make config shared=1 prefix=${{runner.workspace}}/installs gklib_path=../GKlib
49+
export LD_LIBRARY_PATH=${{runner.workspace}}/installs/lib:$LD_LIBRARY_PATH
50+
make config shared=1 prefix=${{runner.workspace}}/installs
5151
make
5252
make install
5353
54+
5455
# - name: Check METIS and GKlib
5556
# working-directory: ${{runner.workspace}}
5657
# run: |
@@ -90,91 +91,91 @@ jobs:
9091
run: |
9192
ctest --parallel --timeout 300 --output-on-failure
9293
93-
debug:
94-
runs-on: ${{ matrix.os }}
95-
strategy:
96-
fail-fast: false
97-
matrix:
98-
os: [ubuntu-latest]
99-
100-
steps:
101-
- uses: actions/checkout@v4
102-
103-
- name: Checkout GKlib
104-
uses: actions/checkout@v4
105-
with:
106-
repository: KarypisLab/GKlib
107-
ref: master
108-
path: GKlib
109-
110-
- name: Checkout METIS
111-
uses: actions/checkout@v4
112-
with:
113-
repository: KarypisLab/METIS
114-
ref: master
115-
path: METIS
116-
117-
- name: Create installs dir
118-
working-directory: ${{runner.workspace}}
119-
run: |
120-
mkdir installs
121-
ls
122-
123-
- name: Install GKLIB
124-
run: |
125-
cd GKlib
126-
make clean
127-
make config shared=1 prefix=${{runner.workspace}}/installs
128-
make
129-
make install
130-
131-
- name: Install METIS
132-
shell: bash
133-
run: |
134-
cd METIS
135-
make clean
136-
export LD_LIBRARY_PATH=/home/runner/work/HiGHS/installs/lib:$LD_LIBRARY_PATH
137-
make config shared=1 prefix=${{runner.workspace}}/installs gklib_path=../GKlib
138-
make
139-
make install
140-
141-
142-
- name: Check METIS and GKlib
143-
working-directory: ${{runner.workspace}}
144-
run: |
145-
cd installs
146-
ls
147-
ls lib
148-
149-
# no default blas available on runner
150-
151-
- name: Install OpenBLAS
152-
shell: bash
153-
run: |
154-
sudo apt update
155-
sudo apt install libopenblas-dev
156-
157-
- name: Create Build Environment
158-
run: cmake -E make_directory ${{runner.workspace}}/build
159-
160-
- name: Configure CMake
161-
working-directory: ${{runner.workspace}}/build
162-
run: |
163-
cmake $GITHUB_WORKSPACE -DHIPO=ON \
164-
-DMETIS_ROOT=${{runner.workspace}}/installs \
165-
-DGKLIB_ROOT=${{runner.workspace}}/installs \
166-
-DCMAKE_BUILD_TYPE=Debug
167-
168-
- name: Build
169-
working-directory: ${{runner.workspace}}/build
170-
run: |
171-
cmake --build . --parallel
172-
173-
- name: Test executable
174-
working-directory: ${{runner.workspace}}/build
175-
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
176-
177-
- name: Ctest
178-
working-directory: ${{runner.workspace}}/build
179-
run: |
180-
ctest --parallel --timeout 300 --output-on-failure
94+
# debug:
95+
# runs-on: ${{ matrix.os }}
96+
# strategy:
97+
# fail-fast: false
98+
# matrix:
99+
# os: [ubuntu-latest]
100+
101+
# steps:
102+
# - uses: actions/checkout@v4
103+
104+
# - name: Checkout GKlib
105+
# uses: actions/checkout@v4
106+
# with:
107+
# repository: KarypisLab/GKlib
108+
# ref: master
109+
# path: GKlib
110+
111+
# - name: Checkout METIS
112+
# uses: actions/checkout@v4
113+
# with:
114+
# repository: KarypisLab/METIS
115+
# ref: master
116+
# path: METIS
117+
118+
# - name: Create installs dir
119+
# working-directory: ${{runner.workspace}}
120+
# run: |
121+
# mkdir installs
122+
# ls
123+
124+
# - name: Install GKLIB
125+
# run: |
126+
# cd GKlib
127+
# make clean
128+
# make config shared=1 prefix=${{runner.workspace}}/installs
129+
# make
130+
# make install
131+
132+
# - name: Install METIS
133+
# shell: bash
134+
# run: |
135+
# cd METIS
136+
# make clean
137+
# export LD_LIBRARY_PATH=/home/runner/work/HiGHS/installs/lib:$LD_LIBRARY_PATH
138+
# make config shared=1 prefix=${{runner.workspace}}/installs gklib_path=../GKlib
139+
# make
140+
# make install
141+
142+
143+
# - name: Check METIS and GKlib
144+
# working-directory: ${{runner.workspace}}
145+
# run: |
146+
# cd installs
147+
# ls
148+
# ls lib
149+
150+
# # no default blas available on runner
151+
152+
# - name: Install OpenBLAS
153+
# shell: bash
154+
# run: |
155+
# sudo apt update
156+
# sudo apt install libopenblas-dev
157+
158+
# - name: Create Build Environment
159+
# run: cmake -E make_directory ${{runner.workspace}}/build
160+
161+
# - name: Configure CMake
162+
# working-directory: ${{runner.workspace}}/build
163+
# run: |
164+
# cmake $GITHUB_WORKSPACE -DHIPO=ON \
165+
# -DMETIS_ROOT=${{runner.workspace}}/installs \
166+
# -DGKLIB_ROOT=${{runner.workspace}}/installs \
167+
# -DCMAKE_BUILD_TYPE=Debug
168+
169+
# - name: Build
170+
# working-directory: ${{runner.workspace}}/build
171+
# run: |
172+
# cmake --build . --parallel
173+
174+
# - name: Test executable
175+
# working-directory: ${{runner.workspace}}/build
176+
# run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
177+
178+
# - name: Ctest
179+
# working-directory: ${{runner.workspace}}/build
180+
# run: |
181+
# ctest --parallel --timeout 300 --output-on-failure

0 commit comments

Comments
 (0)