@@ -75,3 +75,194 @@ jobs:
7575 working-directory : ${{runner.workspace}}/build
7676 run : |
7777 ctest --parallel --timeout 300 --output-on-failure
78+
79+ hipo_install_and_cmake :
80+ runs-on : ${{ matrix.os }}
81+ strategy :
82+ fail-fast : false
83+ matrix :
84+ os : [macos-latest]
85+ branch : [hipo-tt]
86+
87+ steps :
88+ - uses : actions/checkout@v4
89+
90+ - name : Checkout HiGHS
91+ uses : actions/checkout@v4
92+ with :
93+ repository : ERGO-Code/HiGHS
94+ ref : ${{matrix.branch}}
95+ path : HiGHS
96+
97+ - name : Checkout METIS
98+ uses : actions/checkout@v4
99+ with :
100+ repository : galabovaa/METIS
101+ ref : 510-w
102+ path : METIS
103+
104+ - name : Create installs dir
105+ working-directory : ${{runner.workspace}}
106+ run : |
107+ mkdir installs
108+
109+ - name : Install METIS
110+ run : |
111+ cd METIS
112+ pwd
113+ cmake -S. -B build \
114+ -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
115+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
116+ -DCMAKE_BUILD_TYPE=${{ matrix.config }}
117+ cmake --build build --parallel
118+ cmake --install build
119+
120+ - name : Create Build Environment
121+ run : cmake -E make_directory ${{runner.workspace}}/build
122+
123+ - name : Configure CMake
124+ run : |
125+ cmake \
126+ -S ${{runner.workspace}}/highs-tests/HiGHS \
127+ -B ${{runner.workspace}}/build \
128+ -DHIPO=ON \
129+ -DMETIS_ROOT=${{runner.workspace}}/installs \
130+ -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
131+ -DALL_TESTS=${{ matrix.all_tests}} \
132+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
133+
134+ - name : Build
135+ working-directory : ${{runner.workspace}}/build
136+ run : |
137+ cmake --build . --parallel
138+
139+ - name : Test executable
140+ working-directory : ${{runner.workspace}}/build
141+ run : |
142+ ./bin/highs --solver=hipo \
143+ ${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
144+
145+ - name : Install HiGHS
146+ working-directory : ${{runner.workspace}}/build
147+ run : |
148+ cmake --install .
149+
150+ - name : Test install executable
151+ working-directory : ${{runner.workspace}}/installs
152+ run : |
153+ ./bin/highs --solver=hipo \
154+ ${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
155+
156+ - name : Checkout CMakeHighsFindPackage
157+ uses : actions/checkout@v4
158+ with :
159+ repository : galabovaa/CMakeHighsFindPackage
160+ ref : master
161+ path : CMakeHighsFindPackage
162+
163+ - name : Create Build Environment
164+ run : cmake -E make_directory ${{runner.workspace}}/build-find
165+
166+ - name : Build CMakeFindHighsPackage
167+ working-directory : ${{runner.workspace}}/build-find
168+ shell : bash
169+ run : |
170+ cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage \
171+ -DHIGHS_DIR=${{runner.workspace}}/installs/lib/cmake/highs \
172+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs
173+ cmake --build . --parallel
174+ cmake --install .
175+
176+ - name : Test build
177+ working-directory : ${{runner.workspace}}/build-find
178+ shell : bash
179+ run : |
180+ ./main
181+
182+ - name : Test install
183+ working-directory : ${{runner.workspace}}/install-find-highs
184+ shell : bash
185+ run : |
186+ echo "----- ls"
187+ ls
188+ echo "----- ls installs/lib"
189+ ls ${{runner.workspace}}/installs/lib
190+ LD_LIBRARY_PATH=${{runner.workspace}}/installs/lib ./bin/main
191+
192+ fetch :
193+ runs-on : ${{ matrix.os }}
194+ strategy :
195+ fail-fast : false
196+ matrix :
197+ os : [macos-latest]
198+ branch : [hipo-tt]
199+
200+ steps :
201+ - uses : actions/checkout@v4
202+
203+ - name : Checkout CMakeHighsFetchContent
204+ uses : actions/checkout@v4
205+ with :
206+ repository : galabovaa/CMakeHighsFetchContent
207+ ref : main
208+ path : CMakeHighsFetchContent
209+
210+ - name : Checkout METIS
211+ uses : actions/checkout@v4
212+ with :
213+ repository : galabovaa/METIS
214+ ref : 510-w
215+ path : METIS
216+
217+ - name : Create build and install dir
218+ run : |
219+ cmake -E make_directory ${{runner.workspace}}/build
220+ cmake -E make_directory ${{runner.workspace}}/installs
221+
222+ - name : Install METIS
223+ run : |
224+ cd METIS
225+ pwd
226+ cmake -S. -B build \
227+ -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
228+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
229+ -DCMAKE_BUILD_TYPE=${{ matrix.config }}
230+ cmake --build build --parallel
231+ cmake --install build
232+
233+ - name : Configure CMake
234+ run : |
235+ echo "----- ls installs/lib"
236+ ls ${{runner.workspace}}/installs/lib
237+ echo "----- ls build"
238+ ls ${{runner.workspace}}/build
239+ echo "-----"
240+ rm -rf ${{runner.workspace}}/build
241+ cmake -E make_directory ${{runner.workspace}}/build
242+ cd CMakeHighsFetchContent
243+ cmake \
244+ -S ${{runner.workspace}}/highs-tests/CMakeHighsFetchContent \
245+ -B ${{runner.workspace}}/build \
246+ -DHIPO=ON \
247+ -DMETIS_ROOT=${{runner.workspace}}/installs \
248+ -DBRANCH=${{matrix.branch}} \
249+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs
250+
251+ - name : Build
252+ working-directory : ${{runner.workspace}}/build
253+ run : |
254+ ls
255+ cmake --build . --parallel
256+ cmake --install .
257+
258+ - name : Test
259+ working-directory : ${{runner.workspace}}/build
260+ shell : bash
261+ run : |
262+ ./main
263+
264+ - name : Test install
265+ working-directory : ${{runner.workspace}}/installs
266+ shell : bash
267+ run : |
268+ ./bin/main
0 commit comments