Skip to content

Commit cb267d3

Browse files
committed
test install and including in other cmake projects for hipo
1 parent fee4bb0 commit cb267d3

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

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

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
-DHIPO=ON \
5858
-DMETIS_ROOT=${{runner.workspace}}/installs \
5959
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
60-
-DALL_TESTS=${{ matrix.all_tests}}
60+
-DALL_TESTS=${{ matrix.all_tests}} \
61+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
6162
6263
6364
- name: Build
@@ -71,6 +72,46 @@ jobs:
7172
./bin/highs --solver=hipo \
7273
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
7374
75+
- name: Install HiGHS
76+
working-directory: ${{runner.workspace}}/build
77+
run: |
78+
cmake --install .
79+
80+
- name: Test install executable
81+
working-directory: ${{runner.workspace}}/installs
82+
run: |
83+
./bin/highs --solver=hipo \
84+
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
85+
86+
- name: Checkout CMakeHighsFindPackage
87+
uses: actions/checkout@v4
88+
with:
89+
repository: galabovaa/CMakeHighsFindPackage
90+
ref: master
91+
path: CMakeHighsFindPackage
92+
93+
- name: Build CMakeFindHighsPackage
94+
working-directory: ${{runner.workspace}}/build-find-highs-${{matrix.branch}}
95+
shell: bash
96+
run: |
97+
cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage \
98+
-DHIGHS_DIR=${{runner.workspace}}/installs \
99+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs
100+
cmake --build . --parallel
101+
cmake --install .
102+
103+
- name: Test build
104+
working-directory: ${{runner.workspace}}/build-find-highs-${{matrix.branch}}
105+
shell: bash
106+
run: |
107+
./main
108+
109+
- name: Test install
110+
working-directory: ${{runner.workspace}}/install-find-highs-${{matrix.branch}}
111+
shell: bash
112+
run: |
113+
DYLD_LIBRARY_PATH=${{runner.workspace}}/installs/lib ./bin/main
114+
74115
- name: Ctest
75116
working-directory: ${{runner.workspace}}/build
76117
run: |

0 commit comments

Comments
 (0)