Skip to content

Commit 22cac6c

Browse files
committed
try concise way
1 parent 926374d commit 22cac6c

File tree

3 files changed

+26
-614
lines changed

3 files changed

+26
-614
lines changed

.github/workflows/hipo-macos.yml

Lines changed: 8 additions & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ name: hipo-macos
33
on: [push, pull_request]
44

55
jobs:
6-
release:
7-
runs-on: ${{ matrix.os }}
6+
macos:
7+
runs-on: macos-latest
88
strategy:
99
fail-fast: false
1010
matrix:
11-
os: [macos-latest]
11+
config: [Release, Debug]
12+
all_tests: [ON, OFF]
1213

1314
steps:
1415
- uses: actions/checkout@v4
@@ -33,6 +34,8 @@ jobs:
3334
mkdir installs
3435
ls
3536
37+
- name: Copy GKlib shared (bug)
38+
working-directory: ${{runner.workspace}}
3639
run: |
3740
cd GKlib
3841
make config shared=1 prefix=${{runner.workspace}}/installs
@@ -75,6 +78,8 @@ jobs:
7578
working-directory: ${{runner.workspace}}/build
7679
run: |
7780
cmake $GITHUB_WORKSPACE -DHIPO=ON \
81+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
82+
-DALL_TESTS=${{ matrix.all_tests }} \
7883
-DMETIS_ROOT=${{runner.workspace}}/installs \
7984
-DGKLIB_ROOT=${{runner.workspace}}/installs
8085
@@ -91,188 +96,3 @@ jobs:
9196
working-directory: ${{runner.workspace}}/build
9297
run: |
9398
ctest --parallel --timeout 300 --output-on-failure
94-
95-
debug:
96-
runs-on: ${{ matrix.os }}
97-
strategy:
98-
fail-fast: false
99-
matrix:
100-
os: [macos-latest]
101-
102-
steps:
103-
- uses: actions/checkout@v4
104-
105-
- name: Checkout METIS
106-
uses: actions/checkout@v4
107-
with:
108-
repository: galabovaa/METIS
109-
ref: 510-w
110-
path: METIS
111-
112-
- name: Create installs dir
113-
working-directory: ${{runner.workspace}}
114-
run: |
115-
mkdir installs
116-
ls
117-
118-
- name: Install METIS
119-
run: |
120-
cd METIS
121-
pwd
122-
cmake -S. -B build -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
123-
cmake --build build --parallel --config Debug
124-
cmake --install build
125-
126-
- name: Check METIS
127-
working-directory: ${{runner.workspace}}
128-
run: |
129-
cd installs
130-
ls
131-
ls lib
132-
133-
- name: Create Build Environment
134-
run: cmake -E make_directory ${{runner.workspace}}/build
135-
136-
- name: Configure CMake
137-
working-directory: ${{runner.workspace}}/build
138-
run: |
139-
cmake $GITHUB_WORKSPACE -DHIPO=ON \
140-
-DMETIS_ROOT=${{runner.workspace}}/installs \
141-
-DCMAKE_BUILD_TYPE=Debug
142-
143-
- name: Build
144-
working-directory: ${{runner.workspace}}/build
145-
run: |
146-
cmake --build . --parallel
147-
148-
- name: Test executable
149-
working-directory: ${{runner.workspace}}/build
150-
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
151-
152-
- name: Ctest
153-
working-directory: ${{runner.workspace}}/build
154-
run: |
155-
ctest --parallel --timeout 300 --output-on-failure
156-
157-
release_all_tests:
158-
runs-on: ${{ matrix.os }}
159-
strategy:
160-
fail-fast: false
161-
matrix:
162-
os: [macos-latest]
163-
164-
steps:
165-
- uses: actions/checkout@v4
166-
167-
- name: Checkout METIS
168-
uses: actions/checkout@v4
169-
with:
170-
repository: galabovaa/METIS
171-
ref: 510-w
172-
path: METIS
173-
174-
- name: Create installs dir
175-
working-directory: ${{runner.workspace}}
176-
run: |
177-
mkdir installs
178-
ls
179-
180-
- name: Install METIS
181-
run: |
182-
cd METIS
183-
pwd
184-
cmake -S. -B build -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
185-
cmake --build build --parallel --config Release
186-
cmake --install build
187-
188-
- name: Check METIS
189-
working-directory: ${{runner.workspace}}
190-
run: |
191-
cd installs
192-
ls
193-
ls lib
194-
195-
- name: Create Build Environment
196-
run: cmake -E make_directory ${{runner.workspace}}/build
197-
198-
- name: Configure CMake
199-
working-directory: ${{runner.workspace}}/build
200-
run: |
201-
cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
202-
-DMETIS_ROOT=${{runner.workspace}}/installs
203-
204-
- name: Build
205-
working-directory: ${{runner.workspace}}/build
206-
run: |
207-
cmake --build . --parallel
208-
209-
- name: Test executable
210-
working-directory: ${{runner.workspace}}/build
211-
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
212-
213-
- name: Ctest
214-
working-directory: ${{runner.workspace}}/build
215-
run: |
216-
ctest --parallel --timeout 300 --output-on-failure
217-
218-
debug_all_tests:
219-
runs-on: ${{ matrix.os }}
220-
strategy:
221-
fail-fast: false
222-
matrix:
223-
os: [macos-latest]
224-
225-
steps:
226-
- uses: actions/checkout@v4
227-
228-
- name: Checkout METIS
229-
uses: actions/checkout@v4
230-
with:
231-
repository: galabovaa/METIS
232-
ref: 510-w
233-
path: METIS
234-
235-
- name: Create installs dir
236-
working-directory: ${{runner.workspace}}
237-
run: |
238-
mkdir installs
239-
ls
240-
241-
- name: Install METIS
242-
run: |
243-
cd METIS
244-
pwd
245-
cmake -S. -B build -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
246-
cmake --build build --parallel --config Debug
247-
cmake --install build
248-
249-
- name: Check METIS
250-
working-directory: ${{runner.workspace}}
251-
run: |
252-
cd installs
253-
ls
254-
ls lib
255-
256-
- name: Create Build Environment
257-
run: cmake -E make_directory ${{runner.workspace}}/build
258-
259-
- name: Configure CMake
260-
working-directory: ${{runner.workspace}}/build
261-
run: |
262-
cmake $GITHUB_WORKSPACE -DHIPO=ON -DALL_TESTS=ON \
263-
-DMETIS_ROOT=${{runner.workspace}}/installs \
264-
-DCMAKE_BUILD_TYPE=Debug
265-
266-
- name: Build
267-
working-directory: ${{runner.workspace}}/build
268-
run: |
269-
cmake --build . --parallel
270-
271-
- name: Test executable
272-
working-directory: ${{runner.workspace}}/build
273-
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
274-
275-
- name: Ctest
276-
working-directory: ${{runner.workspace}}/build
277-
run: |
278-
ctest --parallel --timeout 300 --output-on-failure

0 commit comments

Comments
 (0)