Skip to content

Commit a91c565

Browse files
committed
test both actually
1 parent d994b94 commit a91c565

File tree

3 files changed

+216
-0
lines changed

3 files changed

+216
-0
lines changed

.github/workflows/hipo-macos.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,75 @@ jobs:
8181
run: |
8282
ctest --parallel --timeout 300 --output-on-failure
8383
84+
macos_510:
85+
runs-on: macos-latest
86+
strategy:
87+
fail-fast: false
88+
matrix:
89+
config: [Release, Debug]
90+
all_tests: [ON, OFF]
91+
92+
steps:
93+
- uses: actions/checkout@v4
94+
95+
- name: Checkout METIS
96+
uses: actions/checkout@v4
97+
with:
98+
repository: galabovaa/METIS
99+
ref: 510-w
100+
path: METIS
101+
102+
- name: Create installs dir
103+
working-directory: ${{runner.workspace}}
104+
run: |
105+
mkdir installs
106+
ls
107+
108+
- name: Install METIS
109+
run: |
110+
cmake \
111+
-S $GITHUB_WORKSPACE/METIS \
112+
-B build \
113+
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
114+
-DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/installs \
115+
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
116+
cmake --build build --parallel
117+
cmake --install build
118+
119+
- name: Check METIS and GKlib
120+
working-directory: ${{runner.workspace}}
121+
run: |
122+
cd installs
123+
ls
124+
ls lib
125+
126+
- name: Create Build Environment
127+
run: cmake -E make_directory ${{runner.workspace}}/build
128+
129+
- name: Configure CMake
130+
working-directory: ${{runner.workspace}}/build
131+
run: |
132+
cmake $GITHUB_WORKSPACE -DHIPO=ON \
133+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
134+
-DALL_TESTS=${{ matrix.all_tests }} \
135+
-DMETIS_ROOT=${{runner.workspace}}/installs \
136+
137+
# -DGKLIB_ROOT=${{runner.workspace}}/installs
138+
139+
- name: Build
140+
working-directory: ${{runner.workspace}}/build
141+
run: |
142+
cmake --build . --parallel
143+
144+
- name: Test executable
145+
working-directory: ${{runner.workspace}}/build
146+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
147+
148+
- name: Ctest
149+
working-directory: ${{runner.workspace}}/build
150+
run: |
151+
ctest --parallel --timeout 300 --output-on-failure
152+
84153
macos_ts:
85154
runs-on: macos-latest
86155
strategy:

.github/workflows/hipo-ubuntu.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,82 @@ jobs:
113113
config: [Release, Debug]
114114
all_tests: [ON, OFF]
115115

116+
steps:
117+
- uses: actions/checkout@v4
118+
119+
- name: Checkout METIS
120+
uses: actions/checkout@v4
121+
with:
122+
repository: galabovaa/METIS
123+
ref: 510-w
124+
path: METIS
125+
126+
- name: Create installs dir
127+
working-directory: ${{runner.workspace}}
128+
run: |
129+
mkdir installs
130+
ls
131+
132+
- name: Install METIS
133+
run: |
134+
cmake \
135+
-S $GITHUB_WORKSPACE/METIS \
136+
-B build \
137+
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
138+
-DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/installs \
139+
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
140+
cmake --build build --parallel
141+
cmake --install build
142+
143+
# no default blas available on runner
144+
145+
- name: Cache APT packages
146+
uses: actions/cache@v4
147+
with:
148+
path: |
149+
/var/cache/apt/archives
150+
/var/lib/apt/lists
151+
key: ${{ runner.os }}-apt-libopenblas
152+
153+
- name: Install OpenBLAS
154+
shell: bash
155+
run: |
156+
sudo apt update
157+
sudo apt install libopenblas-dev
158+
159+
- name: Create Build Environment
160+
run: cmake -E make_directory ${{runner.workspace}}/build
161+
162+
- name: Configure CMake
163+
working-directory: ${{runner.workspace}}/build
164+
run: |
165+
cmake $GITHUB_WORKSPACE -DHIPO=ON \
166+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
167+
-DALL_TESTS=${{ matrix.all_tests }} \
168+
-DMETIS_ROOT=${{runner.workspace}}/installs
169+
170+
- name: Build
171+
working-directory: ${{runner.workspace}}/build
172+
run: |
173+
cmake --build . --parallel
174+
175+
- name: Test executable
176+
working-directory: ${{runner.workspace}}/build
177+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
178+
179+
- name: Ctest
180+
working-directory: ${{runner.workspace}}/build
181+
run: |
182+
ctest --parallel --timeout 300 --output-on-failure
183+
184+
ubuntu_510-ts:
185+
runs-on: ubuntu-latest
186+
strategy:
187+
fail-fast: false
188+
matrix:
189+
config: [Release, Debug]
190+
all_tests: [ON, OFF]
191+
116192
steps:
117193
- uses: actions/checkout@v4
118194

.github/workflows/hipo-win.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,77 @@ jobs:
7373
config: [Release, Debug]
7474
all_tests: [ON, OFF]
7575

76+
steps:
77+
- uses: actions/checkout@v4
78+
79+
- name: Checkout METIS
80+
uses: actions/checkout@v4
81+
with:
82+
repository: galabovaa/METIS
83+
ref: 510-w
84+
path: METIS
85+
86+
- name: Create installs dir
87+
working-directory: ${{runner.workspace}}
88+
run: |
89+
ls
90+
mkdir installs
91+
ls
92+
93+
- name: Install METIS
94+
shell: pwsh
95+
run: |
96+
cd METIS
97+
pwd
98+
cmake -S. -B build `
99+
-DGKLIB_PATH="$env:GITHUB_WORKSPACE/METIS/GKlib" `
100+
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}/installs" `
101+
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
102+
cmake --build build --parallel --config ${{ matrix.config }}
103+
cmake --install build --config ${{ matrix.config }}
104+
105+
- name: Install OpenBLAS
106+
shell: pwsh
107+
run: vcpkg install openblas[threads]
108+
109+
- name: Configure CMake
110+
shell: pwsh
111+
run: |
112+
cmake `
113+
-S "$env:GITHUB_WORKSPACE" `
114+
-B "${{ runner.workspace }}/build" `
115+
-DHIPO=ON `
116+
-DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" `
117+
-DMETIS_ROOT="${{ runner.workspace }}/installs" `
118+
-DALL_TESTS=${{ matrix.all_tests }}
119+
120+
- name: Build
121+
shell: pwsh
122+
working-directory: ${{runner.workspace}}/build
123+
run: |
124+
cmake --build . --parallel --config ${{ matrix.config }}
125+
126+
- name: Test executable
127+
shell: pwsh
128+
working-directory: ${{runner.workspace}}/build
129+
run: |
130+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
131+
"$env:GITHUB_WORKSPACE/check/instances/afiro.mps"
132+
133+
- name: Ctest
134+
shell: pwsh
135+
working-directory: ${{runner.workspace}}/build
136+
run: |
137+
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}
138+
139+
win-510-ts:
140+
runs-on: windows-latest
141+
strategy:
142+
fail-fast: false
143+
matrix:
144+
config: [Release, Debug]
145+
all_tests: [ON, OFF]
146+
76147
steps:
77148
- uses: actions/checkout@v4
78149

0 commit comments

Comments
 (0)