@@ -106,91 +106,99 @@ jobs:
106106 run : |
107107 ctest --parallel --timeout 300 --output-on-failure
108108
109- # debug:
110- # runs-on: ${{ matrix.os }}
111- # strategy:
112- # fail-fast: false
113- # matrix:
114- # os: [ubuntu-latest]
115-
116- # steps:
117- # - uses: actions/checkout@v4
118-
119- # - name: Checkout GKlib
120- # uses: actions/checkout@v4
121- # with:
122- # repository: KarypisLab/GKlib
123- # ref: master
124- # path: GKlib
125-
126- # - name: Checkout METIS
127- # uses: actions/checkout@v4
128- # with:
129- # repository: KarypisLab/METIS
130- # ref: master
131- # path: METIS
132-
133- # - name: Create installs dir
134- # working-directory: ${{runner.workspace}}
135- # run: |
136- # mkdir installs
137- # ls
138-
139- # - name: Install GKLIB
140- # run: |
141- # cd GKlib
142- # make clean
143- # make config shared=1 prefix=${{runner.workspace}}/installs
144- # make
145- # make install
146-
147- # - name: Install METIS
148- # shell: bash
149- # run: |
150- # cd METIS
151- # make clean
152- # export LD_LIBRARY_PATH=/home/runner/work/HiGHS/installs/lib:$LD_LIBRARY_PATH
153- # make config shared=1 prefix=${{runner.workspace}}/installs gklib_path=../GKlib
154- # make
155- # make install
156-
157-
158- # - name: Check METIS and GKlib
159- # working-directory: ${{runner.workspace}}
160- # run: |
161- # cd installs
162- # ls
163- # ls lib
164-
165- # # no default blas available on runner
166-
167- # - name: Install OpenBLAS
168- # shell: bash
169- # run: |
170- # sudo apt update
171- # sudo apt install libopenblas-dev
172-
173- # - name: Create Build Environment
174- # run: cmake -E make_directory ${{runner.workspace}}/build
175-
176- # - name: Configure CMake
177- # working-directory: ${{runner.workspace}}/build
178- # run: |
179- # cmake $GITHUB_WORKSPACE -DHIPO=ON \
180- # -DMETIS_ROOT=${{runner.workspace}}/installs \
181- # -DGKLIB_ROOT=${{runner.workspace}}/installs \
182- # -DCMAKE_BUILD_TYPE=Debug
183-
184- # - name: Build
185- # working-directory: ${{runner.workspace}}/build
186- # run: |
187- # cmake --build . --parallel
188-
189- # - name: Test executable
190- # working-directory: ${{runner.workspace}}/build
191- # run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
192-
193- # - name: Ctest
194- # working-directory: ${{runner.workspace}}/build
195- # run: |
196- # ctest --parallel --timeout 300 --output-on-failure
109+ debug :
110+ runs-on : ${{ matrix.os }}
111+ strategy :
112+ fail-fast : false
113+ matrix :
114+ os : [ubuntu-latest]
115+
116+ steps :
117+ - uses : actions/checkout@v4
118+
119+ - name : Checkout GKlib
120+ uses : actions/checkout@v4
121+ with :
122+ repository : KarypisLab/GKlib
123+ ref : master
124+ path : GKlib
125+
126+ - name : Checkout METIS
127+ uses : actions/checkout@v4
128+ with :
129+ repository : KarypisLab/METIS
130+ ref : master
131+ path : METIS
132+
133+ - name : Create installs dir
134+ working-directory : ${{runner.workspace}}
135+ run : |
136+ mkdir installs
137+ ls
138+
139+ - name : Install GKLIB
140+ run : |
141+ cd GKlib
142+ make clean
143+ make config shared=1 prefix=${{runner.workspace}}/installs
144+ make
145+ make install
146+
147+ - name : Copy GKlib shared (bug)
148+ working-directory : ${{runner.workspace}}
149+ run : |
150+ cd installs
151+ cd lib
152+ ln libGKlib.so.0 libGKlib.so
153+ ls
154+
155+ - name : Install METIS
156+ shell : bash
157+ run : |
158+ cd METIS
159+ make clean
160+ make config shared=1 prefix=${{runner.workspace}}/installs
161+ make
162+ make install
163+
164+ # export LD_LIBRARY_PATH=/home/runner/work/HiGHS/installs/lib:$LD_LIBRARY_PATH
165+
166+ - name : Check METIS and GKlib
167+ working-directory : ${{runner.workspace}}
168+ run : |
169+ cd installs
170+ ls
171+ ls lib
172+
173+ # no default blas available on runner
174+
175+ - name : Install OpenBLAS
176+ shell : bash
177+ run : |
178+ sudo apt update
179+ sudo apt install libopenblas-dev
180+
181+ - name : Create Build Environment
182+ run : cmake -E make_directory ${{runner.workspace}}/build
183+
184+ - name : Configure CMake
185+ working-directory : ${{runner.workspace}}/build
186+ run : |
187+ cmake $GITHUB_WORKSPACE -DHIPO=ON \
188+ -DMETIS_ROOT=${{runner.workspace}}/installs \
189+ -DGKLIB_ROOT=${{runner.workspace}}/installs \
190+ -DCMAKE_BUILD_TYPE=Debug
191+
192+ - name : Build
193+ working-directory : ${{runner.workspace}}/build
194+ run : |
195+ cmake --build . --parallel
196+
197+ - name : Test executable
198+ working-directory : ${{runner.workspace}}/build
199+ run : ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
200+
201+ - name : Ctest
202+ working-directory : ${{runner.workspace}}/build
203+ run : |
204+ ctest --parallel --timeout 300 --output-on-failure
0 commit comments