Skip to content

Commit ac6df66

Browse files
committed
add all versions on hipo-tt
1 parent 96c9ba9 commit ac6df66

File tree

6 files changed

+341
-732
lines changed

6 files changed

+341
-732
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: hipo-macos-510
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: [macos-latest]
12+
branch: [hipo-tt]
13+
config: [Release, Debug]
14+
all_tests: [ON, OFF]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Checkout HiGHS
20+
uses: actions/checkout@v4
21+
with:
22+
repository: ERGO-Code/HiGHS
23+
ref: ${{matrix.branch}}
24+
path: HiGHS
25+
26+
- name: Checkout METIS
27+
uses: actions/checkout@v4
28+
with:
29+
repository: galabovaa/METIS
30+
ref: 510-w
31+
path: METIS
32+
33+
- name: Create installs dir
34+
working-directory: ${{runner.workspace}}
35+
run: |
36+
mkdir installs
37+
38+
- name: Install METIS
39+
run: |
40+
cd METIS
41+
pwd
42+
cmake -S. -B build \
43+
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
44+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
45+
cmake --build build --parallel
46+
cmake --install build
47+
48+
- name: Create Build Environment
49+
run: cmake -E make_directory ${{runner.workspace}}/build
50+
51+
- name: Configure CMake
52+
run: |
53+
cmake \
54+
-S ${{runner.workspace}}/highs-tests/HiGHS \
55+
-B ${{runner.workspace}}/build \
56+
-DHIPO=ON \
57+
-DMETIS_ROOT=${{runner.workspace}}/installs \
58+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
59+
-DALL_TESTS=${{ matrix.all_tests}}
60+
61+
62+
- name: Build
63+
working-directory: ${{runner.workspace}}/build
64+
run: |
65+
cmake --build . --parallel
66+
67+
- name: Test executable
68+
working-directory: ${{runner.workspace}}/build
69+
run: |
70+
./bin/highs --solver=hipo \
71+
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
72+
73+
- name: Ctest
74+
working-directory: ${{runner.workspace}}/build
75+
run: |
76+
ctest --parallel --timeout 300 --output-on-failure

.github/workflows/hipo-macos-gh.yml

Lines changed: 35 additions & 238 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [macos-latest]
12-
branch: [hipo-tt-dev-gk]
12+
branch: [hipo-tt]
13+
config: [Release, Debug]
14+
all_tests: [ON, OFF]
1315

1416
steps:
1517
- uses: actions/checkout@v4
@@ -21,27 +23,46 @@ jobs:
2123
ref: ${{matrix.branch}}
2224
path: HiGHS
2325

26+
- name: Checkout GKlib
27+
uses: actions/checkout@v4
28+
with:
29+
repository: KarypisLab/GKlib
30+
ref: master
31+
path: GKlib
32+
2433
- name: Checkout METIS
2534
uses: actions/checkout@v4
2635
with:
27-
repository: galabovaa/METIS
28-
ref: 510-w
36+
repository: KarypisLab/METIS
37+
ref: master
2938
path: METIS
30-
39+
3140
- name: Create installs dir
3241
working-directory: ${{runner.workspace}}
3342
run: |
3443
mkdir installs
44+
ls
45+
46+
- name: Install GKLIB
47+
run: |
48+
cd GKlib
49+
make config prefix=${{runner.workspace}}/installs
50+
make
51+
make install
3552
3653
- name: Install METIS
3754
run: |
3855
cd METIS
39-
pwd
40-
cmake -S. -B build \
41-
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
42-
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
43-
cmake --build build --parallel --config Release
44-
cmake --install build
56+
make config prefix=${{runner.workspace}}/installs
57+
make
58+
make install
59+
60+
- name: Check METIS and GKlib
61+
working-directory: ${{runner.workspace}}
62+
run: |
63+
cd installs
64+
ls
65+
ls lib
4566
4667
- name: Create Build Environment
4768
run: cmake -E make_directory ${{runner.workspace}}/build
@@ -52,7 +73,10 @@ jobs:
5273
-S ${{runner.workspace}}/highs-tests/HiGHS \
5374
-B ${{runner.workspace}}/build \
5475
-DHIPO=ON \
55-
-DMETIS_ROOT=${{runner.workspace}}/installs
76+
-DMETIS_ROOT=${{runner.workspace}}/installs \
77+
-DGKLIB_ROOT=${{runner.workspace}}/installs \
78+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
79+
-DALL_TESTS=${{ matrix.all_tests}}
5680
5781
- name: Build
5882
working-directory: ${{runner.workspace}}/build
@@ -69,230 +93,3 @@ jobs:
6993
working-directory: ${{runner.workspace}}/build
7094
run: |
7195
ctest --parallel --timeout 300 --output-on-failure
72-
73-
# debug:
74-
# runs-on: ${{ matrix.os }}
75-
# strategy:
76-
# fail-fast: false
77-
# matrix:
78-
# os: [macos-latest]
79-
80-
# steps:
81-
# - uses: actions/checkout@v4
82-
83-
# - name: Checkout GKlib
84-
# uses: actions/checkout@v4
85-
# with:
86-
# repository: KarypisLab/GKlib
87-
# ref: master
88-
# path: GKlib
89-
90-
# - name: Checkout METIS
91-
# uses: actions/checkout@v4
92-
# with:
93-
# repository: KarypisLab/METIS
94-
# ref: master
95-
# path: METIS
96-
97-
# - name: Create installs dir
98-
# working-directory: ${{runner.workspace}}
99-
# run: |
100-
# mkdir installs
101-
# ls
102-
103-
# - name: Install GKLIB
104-
# run: |
105-
# cd GKlib
106-
# make config prefix=${{runner.workspace}}/installs
107-
# make
108-
# make install
109-
110-
# - name: Install METIS
111-
# run: |
112-
# cd METIS
113-
# make config prefix=${{runner.workspace}}/installs
114-
# make
115-
# make install
116-
117-
# - name: Check METIS and GKlib
118-
# working-directory: ${{runner.workspace}}
119-
# run: |
120-
# cd installs
121-
# ls
122-
# ls lib
123-
124-
# - name: Create Build Environment
125-
# run: cmake -E make_directory ${{runner.workspace}}/build
126-
127-
# - name: Configure CMake
128-
# working-directory: ${{runner.workspace}}/build
129-
# run: |
130-
# cmake $GITHUB_WORKSPACE -DHIPO=ON \
131-
# -DMETIS_ROOT=${{runner.workspace}}/installs \
132-
# -DGKLIB_ROOT=${{runner.workspace}}/installs \
133-
# -DCMAKE_BUILD_TYPE=Debug
134-
135-
# - name: Build
136-
# working-directory: ${{runner.workspace}}/build
137-
# run: |
138-
# cmake --build . --parallel
139-
140-
# - name: Test executable
141-
# working-directory: ${{runner.workspace}}/build
142-
# run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
143-
144-
# - name: Ctest
145-
# working-directory: ${{runner.workspace}}/build
146-
# run: |
147-
# ctest --parallel --timeout 300 --output-on-failure
148-
149-
# release_all_tests:
150-
# runs-on: ${{ matrix.os }}
151-
# strategy:
152-
# fail-fast: false
153-
# matrix:
154-
# os: [macos-latest]
155-
156-
# steps:
157-
# - uses: actions/checkout@v4
158-
159-
# - name: Checkout GKlib
160-
# uses: actions/checkout@v4
161-
# with:
162-
# repository: KarypisLab/GKlib
163-
# ref: master
164-
# path: GKlib
165-
166-
# - name: Checkout METIS
167-
# uses: actions/checkout@v4
168-
# with:
169-
# repository: KarypisLab/METIS
170-
# ref: master
171-
# path: METIS
172-
173-
# - name: Create installs dir
174-
# working-directory: ${{runner.workspace}}
175-
# run: |
176-
# mkdir installs
177-
# ls
178-
179-
# - name: Install GKLIB
180-
# run: |
181-
# cd GKlib
182-
# make config prefix=${{runner.workspace}}/installs
183-
# make
184-
# make install
185-
186-
# - name: Install METIS
187-
# run: |
188-
# cd METIS
189-
# make config prefix=${{runner.workspace}}/installs
190-
# make
191-
# make install
192-
193-
# - name: Check METIS and GKlib
194-
# working-directory: ${{runner.workspace}}
195-
# run: |
196-
# cd installs
197-
# ls
198-
# ls lib
199-
200-
# - name: Create Build Environment
201-
# run: cmake -E make_directory ${{runner.workspace}}/build
202-
203-
# - name: Configure CMake
204-
# working-directory: ${{runner.workspace}}/build
205-
# run: |
206-
# cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
207-
# -DMETIS_ROOT=${{runner.workspace}}/installs \
208-
# -DGKLIB_ROOT=${{runner.workspace}}/installs
209-
210-
# - name: Build
211-
# working-directory: ${{runner.workspace}}/build
212-
# run: |
213-
# cmake --build . --parallel
214-
215-
# - name: Test executable
216-
# working-directory: ${{runner.workspace}}/build
217-
# run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
218-
219-
# - name: Ctest
220-
# working-directory: ${{runner.workspace}}/build
221-
# run: |
222-
# ctest --parallel --timeout 300 --output-on-failure
223-
224-
# debug_all_tests:
225-
# runs-on: ${{ matrix.os }}
226-
# strategy:
227-
# fail-fast: false
228-
# matrix:
229-
# os: [macos-latest]
230-
231-
# steps:
232-
# - uses: actions/checkout@v4
233-
234-
# - name: Checkout GKlib
235-
# uses: actions/checkout@v4
236-
# with:
237-
# repository: KarypisLab/GKlib
238-
# ref: master
239-
# path: GKlib
240-
241-
# - name: Checkout METIS
242-
# uses: actions/checkout@v4
243-
# with:
244-
# repository: KarypisLab/METIS
245-
# ref: master
246-
# path: METIS
247-
248-
# - name: Create installs dir
249-
# working-directory: ${{runner.workspace}}
250-
# run: |
251-
# mkdir installs
252-
# ls
253-
254-
# - name: Install GKLIB
255-
# run: |
256-
# cd GKlib
257-
# make config prefix=${{runner.workspace}}/installs
258-
# make
259-
# make install
260-
261-
# - name: Install METIS
262-
# run: |
263-
# cd METIS
264-
# make config prefix=${{runner.workspace}}/installs
265-
# make
266-
# make install
267-
268-
# - name: Check METIS and GKlib
269-
# working-directory: ${{runner.workspace}}
270-
# run: |
271-
# cd installs
272-
# ls
273-
# ls lib
274-
275-
# - name: Create Build Environment
276-
# run: cmake -E make_directory ${{runner.workspace}}/build
277-
278-
# - name: Configure CMake
279-
# working-directory: ${{runner.workspace}}/build
280-
# run: |
281-
# cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
282-
# -DMETIS_ROOT=${{runner.workspace}}/installs \
283-
# -DGKLIB_ROOT=${{runner.workspace}}/installs \
284-
# -DCMAKE_BUILD_TYPE=Debug
285-
286-
# - name: Build
287-
# working-directory: ${{runner.workspace}}/build
288-
# run: |
289-
# cmake --build . --parallel
290-
291-
# - name: Test executable
292-
# working-directory: ${{runner.workspace}}/build
293-
# run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
294-
295-
# - name: Ctest
296-
# working-directory: ${{runner.workspace}}/build
297-
# run: |
298-
# ctest --parallel --timeout 300 --output-on-failure

0 commit comments

Comments
 (0)