Skip to content

Commit 50827d2

Browse files
committed
added workflow to test fetch and typo in openblas cmake flags to make it a bit smaller
1 parent af12fd5 commit 50827d2

File tree

2 files changed

+78
-1
lines changed

2 files changed

+78
-1
lines changed

.github/workflows/hipo-fetch.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: hipo-fetch
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
# config: [Release, Debug]
11+
config: [Release]
12+
all_tests: [ON]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Create Build Environment
18+
run: cmake -E make_directory ${{runner.workspace}}/build
19+
20+
- name: Configure CMake
21+
working-directory: ${{runner.workspace}}/build
22+
run: |
23+
cmake $GITHUB_WORKSPACE -DHIPO=ON -DBUILD_OPENBLAS=ON \
24+
-DALL_TESTS=${{ matrix.all_tests }}
25+
26+
- name: Build
27+
working-directory: ${{runner.workspace}}/build
28+
run: |
29+
cmake --build . --parallel
30+
31+
- name: Test executable
32+
working-directory: ${{runner.workspace}}/build
33+
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
34+
35+
- name: Ctest
36+
working-directory: ${{runner.workspace}}/build
37+
run: |
38+
ctest --parallel --timeout 300 --output-on-failure
39+
40+
windows:
41+
runs-on: windows-latest
42+
strategy:
43+
matrix:
44+
config: [Release]
45+
all_tests: [ON]
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
50+
- name: Configure CMake
51+
shell: pwsh
52+
run: |
53+
cmake `
54+
-S "$env:GITHUB_WORKSPACE" `
55+
-B "${{ runner.workspace }}/build" `
56+
-DHIPO=ON `
57+
-DALL_TESTS=${{ matrix.all_tests }} `
58+
-DBUILD_OPENBLAS=ON
59+
60+
- name: Build
61+
shell: pwsh
62+
working-directory: ${{runner.workspace}}/build
63+
run: |
64+
cmake --build . --parallel --config ${{ matrix.config }}
65+
66+
- name: Test executable
67+
shell: pwsh
68+
working-directory: ${{runner.workspace}}/build
69+
run: |
70+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
71+
"$env:GITHUB_WORKSPACE/check/instances/afiro.mps"
72+
73+
- name: Ctest
74+
shell: pwsh
75+
working-directory: ${{runner.workspace}}/build
76+
run: |
77+
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}

cmake/FindHipoDeps.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (BUILD_OPENBLAS)
3232
GIT_TAG "v0.3.30"
3333
GIT_SHALLOW TRUE
3434
UPDATE_COMMAND git reset --hard
35-
CMAKE_ARGS ${OPENBLAS_MINIMAL_FLASS}
35+
CMAKE_ARGS ${OPENBLAS_MINIMAL_FLAGS}
3636
)
3737
FetchContent_MakeAvailable(openblas)
3838
list(POP_BACK CMAKE_MESSAGE_INDENT)

0 commit comments

Comments
 (0)