Order path separator #179
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: hipo-ubuntu-cblas | |
| on: [push, pull_request] | |
| jobs: | |
| ubuntu_gh: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # config: [Release, Debug] | |
| config: [Release] | |
| all_tests: [OFF] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout GKlib | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: KarypisLab/GKlib | |
| ref: master | |
| path: GKlib | |
| - name: Checkout METIS | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: KarypisLab/METIS | |
| ref: master | |
| path: METIS | |
| - name: Create installs dir | |
| working-directory: ${{runner.workspace}} | |
| run: | | |
| mkdir installs | |
| ls | |
| - name: Install GKlib | |
| run: | | |
| cd GKlib | |
| make config shared=1 prefix=${{runner.workspace}}/installs | |
| make | |
| make install | |
| # - name: Check installs | |
| # working-directory: ${{runner.workspace}} | |
| # run: | | |
| # cd installs | |
| # ls | |
| # ls lib | |
| - name: Copy GKlib shared (bug) | |
| working-directory: ${{runner.workspace}} | |
| run: | | |
| cd installs | |
| cd lib | |
| ln libGKlib.so.0 libGKlib.so | |
| ls | |
| - name: Install METIS | |
| run: | | |
| cd METIS | |
| make config shared=1 prefix=${{runner.workspace}}/installs | |
| make | |
| make install | |
| # no default blas available on runner | |
| - name: Cache APT packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| /var/cache/apt/archives | |
| /var/lib/apt/lists | |
| key: ${{ runner.os }}-apt-libblas | |
| - name: Install OpenBLAS | |
| shell: bash | |
| run: | | |
| sudo apt update | |
| sudo apt install libblas-dev | |
| - name: Create Build Environment | |
| run: cmake -E make_directory ${{runner.workspace}}/build | |
| - name: Configure CMake | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| cmake $GITHUB_WORKSPACE -DHIPO=ON \ | |
| -DCMAKE_BUILD_TYPE=${{ matrix.config }} \ | |
| -DALL_TESTS=${{ matrix.all_tests }} \ | |
| -DMETIS_ROOT=${{runner.workspace}}/installs \ | |
| -DGKLIB_ROOT=${{runner.workspace}}/installs | |
| - name: Build | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| cmake --build . --parallel | |
| - name: Test executable | |
| working-directory: ${{runner.workspace}}/build | |
| run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps | |
| - name: Ctest | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| ctest --parallel --timeout 300 --output-on-failure |