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