|
57 | 57 | -DHIPO=ON \ |
58 | 58 | -DMETIS_ROOT=${{runner.workspace}}/installs \ |
59 | 59 | -DCMAKE_BUILD_TYPE=${{ matrix.config }} \ |
60 | | - -DALL_TESTS=${{ matrix.all_tests}} |
| 60 | + -DALL_TESTS=${{ matrix.all_tests}} \ |
| 61 | + -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs |
61 | 62 |
|
62 | 63 |
|
63 | 64 | - name: Build |
|
71 | 72 | ./bin/highs --solver=hipo \ |
72 | 73 | ${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps |
73 | 74 |
|
| 75 | + - name: Install HiGHS |
| 76 | + working-directory: ${{runner.workspace}}/build |
| 77 | + run: | |
| 78 | + cmake --install . |
| 79 | +
|
| 80 | + - name: Test install executable |
| 81 | + working-directory: ${{runner.workspace}}/installs |
| 82 | + run: | |
| 83 | + ./bin/highs --solver=hipo \ |
| 84 | + ${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps |
| 85 | +
|
| 86 | + - name: Checkout CMakeHighsFindPackage |
| 87 | + uses: actions/checkout@v4 |
| 88 | + with: |
| 89 | + repository: galabovaa/CMakeHighsFindPackage |
| 90 | + ref: master |
| 91 | + path: CMakeHighsFindPackage |
| 92 | + |
| 93 | + - name: Build CMakeFindHighsPackage |
| 94 | + working-directory: ${{runner.workspace}}/build-find-highs-${{matrix.branch}} |
| 95 | + shell: bash |
| 96 | + run: | |
| 97 | + cmake ${{runner.workspace}}/highs-tests/CMakeHighsFindPackage \ |
| 98 | + -DHIGHS_DIR=${{runner.workspace}}/installs \ |
| 99 | + -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-find-highs |
| 100 | + cmake --build . --parallel |
| 101 | + cmake --install . |
| 102 | +
|
| 103 | + - name: Test build |
| 104 | + working-directory: ${{runner.workspace}}/build-find-highs-${{matrix.branch}} |
| 105 | + shell: bash |
| 106 | + run: | |
| 107 | + ./main |
| 108 | +
|
| 109 | + - name: Test install |
| 110 | + working-directory: ${{runner.workspace}}/install-find-highs-${{matrix.branch}} |
| 111 | + shell: bash |
| 112 | + run: | |
| 113 | + DYLD_LIBRARY_PATH=${{runner.workspace}}/installs/lib ./bin/main |
| 114 | +
|
74 | 115 | - name: Ctest |
75 | 116 | working-directory: ${{runner.workspace}}/build |
76 | 117 | run: | |
|
0 commit comments