@@ -91,3 +91,112 @@ jobs:
9191 working-directory : ${{runner.workspace}}/build
9292 run : |
9393 ctest --parallel --timeout 300 --output-on-failure
94+
95+ hipo_install_and_cmake :
96+ runs-on : ${{ matrix.os }}
97+ strategy :
98+ fail-fast : false
99+ matrix :
100+ os : [ubuntu-latest]
101+ branch : [hipo-tt]
102+
103+ steps :
104+ - uses : actions/checkout@v4
105+
106+ - name : Checkout HiGHS
107+ uses : actions/checkout@v4
108+ with :
109+ repository : ERGO-Code/HiGHS
110+ ref : ${{matrix.branch}}
111+ path : HiGHS
112+
113+ - name : Checkout METIS
114+ uses : actions/checkout@v4
115+ with :
116+ repository : galabovaa/METIS
117+ ref : 510-w
118+ path : METIS
119+
120+ - name : Create installs dir
121+ working-directory : ${{runner.workspace}}
122+ run : |
123+ mkdir installs
124+
125+ - name : Install METIS
126+ run : |
127+ cd METIS
128+ pwd
129+ cmake -S. -B build \
130+ -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
131+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
132+ -DCMAKE_BUILD_TYPE=${{ matrix.config }}
133+ cmake --build build --parallel
134+ cmake --install build
135+
136+ - name : Create Build Environment
137+ run : cmake -E make_directory ${{runner.workspace}}/build
138+
139+ - name : Configure CMake
140+ run : |
141+ cmake \
142+ -S ${{runner.workspace}}/highs-tests/HiGHS \
143+ -B ${{runner.workspace}}/build \
144+ -DHIPO=ON \
145+ -DMETIS_ROOT=${{runner.workspace}}/installs \
146+ -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
147+ -DALL_TESTS=${{ matrix.all_tests}} \
148+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
149+
150+ - name : Build
151+ working-directory : ${{runner.workspace}}/build
152+ run : |
153+ cmake --build . --parallel
154+
155+ - name : Test executable
156+ working-directory : ${{runner.workspace}}/build
157+ run : |
158+ ./bin/highs --solver=hipo \
159+ ${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
160+
161+ - name : Install HiGHS
162+ working-directory : ${{runner.workspace}}/build
163+ run : |
164+ cmake --install .
165+
166+ - name : Test install executable
167+ working-directory : ${{runner.workspace}}/installs
168+ run : |
169+ ./bin/highs --solver=hipo \
170+ ${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
171+
172+ - name : Checkout CMakeHighsFindPackage
173+ uses : actions/checkout@v4
174+ with :
175+ repository : galabovaa/CMakeHighsFindPackage
176+ ref : master
177+ path : CMakeHighsFindPackage
178+
179+ - name : Create Build Environment
180+ run : cmake -E make_directory ${{runner.workspace}}/build-find
181+
182+ - name : Build CMakeFindHighsPackage
183+ working-directory : ${{runner.workspace}}/build-find
184+ shell : bash
185+ run : |
186+ cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage \
187+ -DHIGHS_DIR=${{runner.workspace}}/installs \
188+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs
189+ cmake --build . --parallel
190+ cmake --install .
191+
192+ - name : Test build
193+ working-directory : ${{runner.workspace}}/build-find
194+ shell : bash
195+ run : |
196+ ./main
197+
198+ - name : Test install
199+ working-directory : ${{runner.workspace}}/install-find-highs
200+ shell : bash
201+ run : |
202+ DYLD_LIBRARY_PATH=${{runner.workspace}}/installs/lib ./bin/main
0 commit comments