Skip to content

Commit 6379ca5

Browse files
committed
add debug workflows for metis ts
1 parent 02dd589 commit 6379ca5

File tree

3 files changed

+251
-0
lines changed

3 files changed

+251
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: w510-ts-debug
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
hipo_510:
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-ts
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+
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
46+
cmake --build build --parallel
47+
cmake --install build
48+
49+
- name: Create Build Environment
50+
run: cmake -E make_directory ${{runner.workspace}}/build
51+
52+
- name: Configure CMake
53+
run: |
54+
cmake \
55+
-S ${{runner.workspace}}/highs-tests/HiGHS \
56+
-B ${{runner.workspace}}/build \
57+
-DHIPO=ON \
58+
-DMETIS_ROOT=${{runner.workspace}}/installs \
59+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
60+
-DALL_TESTS=${{ matrix.all_tests}} \
61+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
62+
63+
- name: Build
64+
working-directory: ${{runner.workspace}}/build
65+
run: |
66+
cmake --build . --parallel
67+
68+
- name: Test executable
69+
working-directory: ${{runner.workspace}}/build
70+
run: |
71+
./bin/highs --solver=hipo \
72+
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
73+
74+
- name: Ctest
75+
working-directory: ${{runner.workspace}}/build
76+
run: |
77+
ctest --parallel --timeout 300 --output-on-failure
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: hipo-ubuntu-510
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
hipo_510:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-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-ts
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+
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
46+
cmake --build build --parallel
47+
cmake --install build
48+
49+
# no default blas available on runner
50+
51+
- name: Cache APT packages
52+
uses: actions/cache@v4
53+
with:
54+
path: |
55+
/var/cache/apt/archives
56+
/var/lib/apt/lists
57+
key: ${{ runner.os }}-apt-libopenblas
58+
59+
- name: Install OpenBLAS
60+
shell: bash
61+
run: |
62+
sudo apt update
63+
sudo apt install libopenblas-dev
64+
65+
- name: Create Build Environment
66+
run: cmake -E make_directory ${{runner.workspace}}/build
67+
68+
- name: Configure CMake
69+
run: |
70+
cmake \
71+
-S ${{runner.workspace}}/highs-tests/HiGHS \
72+
-B ${{runner.workspace}}/build \
73+
-DHIPO=ON \
74+
-DMETIS_ROOT=${{runner.workspace}}/installs \
75+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
76+
-DALL_TESTS=${{ matrix.all_tests}}
77+
78+
- name: Build
79+
working-directory: ${{runner.workspace}}/build
80+
run: |
81+
cmake --build . --parallel
82+
83+
- name: Test executable
84+
working-directory: ${{runner.workspace}}/build
85+
run: |
86+
./bin/highs --solver=hipo \
87+
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
88+
89+
- name: Ctest
90+
working-directory: ${{runner.workspace}}/build
91+
run: |
92+
ctest --parallel --timeout 300 --output-on-failure

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

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: hipo-win-510
2+
3+
on: [push, pull_request]
4+
# on: []
5+
6+
jobs:
7+
hipo_510:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [windows-latest]
13+
branch: [hipo-tt]
14+
config: [Release, Debug]
15+
all_tests: [ON, OFF]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Checkout HiGHS
21+
uses: actions/checkout@v4
22+
with:
23+
repository: ERGO-Code/HiGHS
24+
ref: ${{matrix.branch}}
25+
path: HiGHS
26+
27+
- name: Checkout METIS
28+
uses: actions/checkout@v4
29+
with:
30+
repository: galabovaa/METIS
31+
ref: 510-ts
32+
path: METIS
33+
34+
- name: Install METIS
35+
run: |
36+
cmake `
37+
-S "$env:GITHUB_WORKSPACE/METIS" `
38+
-B build `
39+
-DGKLIB_PATH="$env:GITHUB_WORKSPACE/METIS/GKlib" `
40+
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}"/installs
41+
cmake --build build --parallel --config ${{ matrix.config }}
42+
cmake --install build --config ${{ matrix.config }}
43+
44+
- name: Install OpenBLAS
45+
shell: pwsh
46+
run: vcpkg install openblas[threads]
47+
48+
- name: Create build and install dir
49+
run: |
50+
cmake -E make_directory ${{runner.workspace}}/build
51+
cmake -E make_directory ${{runner.workspace}}/installs
52+
53+
- name: Configure cmake
54+
shell: pwsh
55+
run: |
56+
cmake `
57+
-S "$env:GITHUB_WORKSPACE/HiGHS" `
58+
-B "${{ runner.workspace }}/build" `
59+
-DHIPO=ON `
60+
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake `
61+
-DMETIS_ROOT="${{ runner.workspace }}/installs" `
62+
-DALL_TESTS=${{ matrix.all_tests }}
63+
64+
- name: Build
65+
shell: pwsh
66+
working-directory: ${{runner.workspace}}/build
67+
run: |
68+
cmake --build . --parallel --config ${{ matrix.config }}
69+
ls
70+
71+
- name: Test executable
72+
shell: pwsh
73+
working-directory: ${{runner.workspace}}/build
74+
run: |
75+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
76+
"${{ runner.workspace }}/highs-tests/HiGHS/check/instances/afiro.mps"
77+
78+
- name: Ctest
79+
shell: pwsh
80+
working-directory: ${{runner.workspace}}/build
81+
run: |
82+
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}

0 commit comments

Comments
 (0)