Skip to content

Commit cf98afb

Browse files
committed
windows, names and -ts
1 parent 5d3ee9d commit cf98afb

File tree

6 files changed

+215
-8
lines changed

6 files changed

+215
-8
lines changed

.github/workflows/h-510-ts-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: w510-ts-debug
1+
name: h-510-ts-macos
22

33
on: [push, pull_request]
44

.github/workflows/h-510-ts-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: hipo-ubuntu-510
1+
name: h-510-ts-ubuntu
22

33
on: [push, pull_request]
44

.github/workflows/h-510-ts-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: hipo-win-510
1+
name: h-510-ts-win
22

33
on: [push, pull_request]
44
# on: []

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
uses: actions/checkout@v4
9999
with:
100100
repository: galabovaa/METIS
101-
ref: 510-w
101+
ref: 510-ts
102102
path: METIS
103103

104104
- name: Create installs dir
@@ -211,7 +211,7 @@ jobs:
211211
uses: actions/checkout@v4
212212
with:
213213
repository: galabovaa/METIS
214-
ref: 510-w
214+
ref: 510-ts
215215
path: METIS
216216

217217
- name: Create build and install dir

.github/workflows/hipo-ubuntu-510.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
fail-fast: false
213213
matrix:
214214
os: [ubuntu-latest]
215-
branch: [hipo-tt]
215+
branch: [hipo-ttr]
216216

217217
steps:
218218
- uses: actions/checkout@v4
@@ -228,7 +228,7 @@ jobs:
228228
uses: actions/checkout@v4
229229
with:
230230
repository: galabovaa/METIS
231-
ref: 510-w
231+
ref: 510-ts
232232
path: METIS
233233

234234
- name: Create installs dir
@@ -355,7 +355,7 @@ jobs:
355355
uses: actions/checkout@v4
356356
with:
357357
repository: galabovaa/METIS
358-
ref: 510-w
358+
ref: 510-ts
359359
path: METIS
360360

361361
- name: Create build and install dir

.github/workflows/hipo-win-510.yml

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,210 @@ jobs:
8080
working-directory: ${{runner.workspace}}/build
8181
run: |
8282
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}
83+
84+
hipo_install_and_cmake:
85+
runs-on: ${{ matrix.os }}
86+
strategy:
87+
fail-fast: false
88+
matrix:
89+
os: [windows-latest]
90+
branch: [hipo-tt]
91+
92+
steps:
93+
- uses: actions/checkout@v4
94+
95+
- name: Checkout HiGHS
96+
uses: actions/checkout@v4
97+
with:
98+
repository: ERGO-Code/HiGHS
99+
ref: ${{matrix.branch}}
100+
path: HiGHS
101+
102+
- name: Checkout METIS
103+
uses: actions/checkout@v4
104+
with:
105+
repository: galabovaa/METIS
106+
ref: 510-ts
107+
path: METIS
108+
109+
- name: Install METIS
110+
run: |
111+
cmake `
112+
-S "$env:GITHUB_WORKSPACE/METIS" `
113+
-B build `
114+
-DGKLIB_PATH="$env:GITHUB_WORKSPACE/METIS/GKlib" `
115+
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}"/installs
116+
cmake --build build --parallel --config ${{ matrix.config }}
117+
cmake --install build --config ${{ matrix.config }}
118+
119+
- name: Install OpenBLAS
120+
shell: pwsh
121+
run: vcpkg install openblas[threads]
122+
123+
- name: Configure cmake
124+
shell: pwsh
125+
run: |
126+
cmake `
127+
-S "$env:GITHUB_WORKSPACE/HiGHS" `
128+
-B "${{ runner.workspace }}/build" `
129+
-DHIPO=ON `
130+
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake `
131+
-DMETIS_ROOT="${{ runner.workspace }}/installs" `
132+
-DALL_TESTS=${{ matrix.all_tests }}
133+
134+
- name: Build
135+
shell: pwsh
136+
working-directory: ${{runner.workspace}}/build
137+
run: |
138+
cmake --build . --parallel --config ${{ matrix.config }}
139+
ls
140+
141+
- name: Test executable
142+
shell: pwsh
143+
working-directory: ${{runner.workspace}}/build
144+
run: |
145+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
146+
"${{ runner.workspace }}/highs-tests/HiGHS/check/instances/afiro.mps"
147+
148+
- name: Ctest
149+
shell: pwsh
150+
working-directory: ${{runner.workspace}}/build
151+
run: |
152+
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}
153+
154+
- name: Install HiGHS
155+
working-directory: ${{runner.workspace}}/build
156+
run: |
157+
cmake --install .
158+
159+
- name: Test install executable
160+
working-directory: ${{runner.workspace}}/installs
161+
run: |
162+
ls
163+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
164+
"${{ runner.workspace }}/highs-tests/HiGHS/check/instances/afiro.mps"
165+
166+
- name: Checkout CMakeHighsFindPackage
167+
uses: actions/checkout@v4
168+
with:
169+
repository: galabovaa/CMakeHighsFindPackage
170+
ref: master
171+
path: CMakeHighsFindPackage
172+
173+
- name: Create Build Environment
174+
run: cmake -E make_directory ${{runner.workspace}}/build-find
175+
176+
- name: Build CMakeFindHighsPackage
177+
working-directory: ${{runner.workspace}}/build-find
178+
shell: bash
179+
run: |
180+
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage `
181+
-DHIGHS_DIR="${{runner.workspace}}/installs/lib/cmake/highs" `
182+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs
183+
cmake --build . --parallel --config Release
184+
cmake --install .
185+
186+
- name: Test build
187+
working-directory: ${{runner.workspace}}/build-find
188+
run: |
189+
& ".\${{ matrix.config }}\main.exe"
190+
191+
- name: Test install
192+
working-directory: ${{runner.workspace}}/install-find-highs
193+
run: |
194+
echo "----- ls"
195+
ls
196+
& ".\${{ matrix.config }}\main.exe"
197+
198+
fetch:
199+
runs-on: ${{ matrix.os }}
200+
strategy:
201+
fail-fast: false
202+
matrix:
203+
os: [windows-latest]
204+
branch: [hipo-tt]
205+
206+
steps:
207+
- uses: actions/checkout@v4
208+
209+
- name: Checkout CMakeHighsFetchContent
210+
uses: actions/checkout@v4
211+
with:
212+
repository: galabovaa/CMakeHighsFetchContent
213+
ref: main
214+
path: CMakeHighsFetchContent
215+
216+
- name: Checkout METIS
217+
uses: actions/checkout@v4
218+
with:
219+
repository: galabovaa/METIS
220+
ref: 510-ts
221+
path: METIS
222+
223+
- name: Create build and install dir
224+
run: |
225+
cmake -E make_directory ${{runner.workspace}}/build
226+
cmake -E make_directory ${{runner.workspace}}/installs
227+
228+
- name: Install METIS
229+
run: |
230+
cmake `
231+
-S "$env:GITHUB_WORKSPACE/METIS" `
232+
-B build `
233+
-DGKLIB_PATH="$env:GITHUB_WORKSPACE/METIS/GKlib" `
234+
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}"/installs
235+
cmake --build build --parallel --config ${{ matrix.config }}
236+
cmake --install build --config ${{ matrix.config }}
237+
238+
- name: Install OpenBLAS
239+
shell: pwsh
240+
run: vcpkg install openblas[threads]
241+
242+
- name: Configure cmake
243+
shell: pwsh
244+
run: |
245+
cmake `
246+
-S "$env:GITHUB_WORKSPACE/HiGHS" `
247+
-B "${{ runner.workspace }}/build" `
248+
-DHIPO=ON `
249+
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake `
250+
-DMETIS_ROOT="${{ runner.workspace }}/installs" `
251+
252+
- name: Configure CMake
253+
run: |
254+
echo "----- ls installs/lib"
255+
ls ${{runner.workspace}}/installs/lib
256+
echo "----- ls build"
257+
ls ${{runner.workspace}}/build
258+
echo "-----"
259+
rm -rf ${{runner.workspace}}/build
260+
cmake -E make_directory ${{runner.workspace}}/build
261+
cd CMakeHighsFetchContent
262+
cmake `
263+
-S ${{runner.workspace}}/highs-tests/CMakeHighsFetchContent `
264+
-B ${{runner.workspace}}/build `
265+
-DHIPO=ON `
266+
-DMETIS_ROOT="${{runner.workspace}}/installs" `
267+
-DBRANCH=${{matrix.branch}} `
268+
-DCMAKE_INSTALL_PREFIX="${{runner.workspace}}/installs"
269+
270+
- name: Build
271+
working-directory: ${{runner.workspace}}/build
272+
run: |
273+
ls
274+
cmake --build . --parallel --config Release
275+
cmake --install .
276+
277+
- name: Test
278+
working-directory: ${{runner.workspace}}/build
279+
shell: bash
280+
run: |
281+
& ".\${{ matrix.config }}\main.exe"
282+
283+
- name: Test install
284+
working-directory: ${{runner.workspace}}/installs
285+
shell: bash
286+
run: |
287+
echo "----- ls"
288+
ls
289+
& ".\${{ matrix.config }}\main.exe"

0 commit comments

Comments
 (0)