|
| 1 | +name: hipo-win |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + RelWithDebInfo: |
| 7 | + runs-on: ${{ matrix.os }} |
| 8 | + strategy: |
| 9 | + fail-fast: false |
| 10 | + matrix: |
| 11 | + os: [windows-latest] |
| 12 | + |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + |
| 16 | + # 2. Set up caching for vcpkg |
| 17 | + - name: Cache vcpkg |
| 18 | + uses: actions/cache@v3 |
| 19 | + with: |
| 20 | + path: | |
| 21 | + ./vcpkg/installed |
| 22 | + ./vcpkg/downloads |
| 23 | + key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} |
| 24 | + restore-keys: | |
| 25 | + vcpkg-${{ runner.os }}- |
| 26 | +
|
| 27 | + # - name: Install GKlib |
| 28 | + # run: vcpkg install gklib |
| 29 | + |
| 30 | + # - name: ls |
| 31 | + # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib |
| 32 | + |
| 33 | + - name: Install METIS |
| 34 | + run: vcpkg install metis |
| 35 | + |
| 36 | + # run: ls C:/vcpkg/packages/metis_x64-windows/ |
| 37 | + # run: ls C:/vcpkg/packages/metis_x64-windows/lib |
| 38 | + # run: ls C:/vcpkg/packages/metis_x64-windows/share |
| 39 | + # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib |
| 40 | + |
| 41 | + - name: Install OpenBLAS |
| 42 | + run: vcpkg install openblas |
| 43 | + |
| 44 | + - name: Create build dir |
| 45 | + run: cmake -E make_directory ${{runner.workspace}}/build |
| 46 | + |
| 47 | + - name: Configure cmake |
| 48 | + shell: bash |
| 49 | + working-directory: ${{runner.workspace}}/build |
| 50 | + run: | |
| 51 | + cmake $GITHUB_WORKSPACE \ |
| 52 | + -DHIPO=ON \ |
| 53 | + -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 54 | +
|
| 55 | + # -DCMAKE_CXX_FLAGS="-I C:/vcpkg/packages/gklib_x64-windows/include/GKlib" |
| 56 | +
|
| 57 | + - name: Build |
| 58 | + shell: bash |
| 59 | + working-directory: ${{runner.workspace}}/build |
| 60 | + run: | |
| 61 | + cmake --build . --parallel --config RelWithDebInfo |
| 62 | +
|
| 63 | + - name: Test executable |
| 64 | + shell: bash |
| 65 | + working-directory: ${{runner.workspace}}/build |
| 66 | + run: ./RelWithDebInfo/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps |
| 67 | + |
| 68 | + release: |
| 69 | + runs-on: ${{ matrix.os }} |
| 70 | + strategy: |
| 71 | + fail-fast: false |
| 72 | + matrix: |
| 73 | + os: [windows-latest] |
| 74 | + |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v4 |
| 77 | + |
| 78 | + # 2. Set up caching for vcpkg |
| 79 | + - name: Cache vcpkg |
| 80 | + uses: actions/cache@v3 |
| 81 | + with: |
| 82 | + path: | |
| 83 | + ./vcpkg/installed |
| 84 | + ./vcpkg/downloads |
| 85 | + key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} |
| 86 | + restore-keys: | |
| 87 | + vcpkg-${{ runner.os }}- |
| 88 | +
|
| 89 | + # - name: Install GKlib |
| 90 | + # run: vcpkg install gklib |
| 91 | + |
| 92 | + # - name: ls |
| 93 | + # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib |
| 94 | + |
| 95 | + - name: Install METIS |
| 96 | + run: vcpkg install metis |
| 97 | + |
| 98 | + # run: ls C:/vcpkg/packages/metis_x64-windows/ |
| 99 | + # run: ls C:/vcpkg/packages/metis_x64-windows/lib |
| 100 | + # run: ls C:/vcpkg/packages/metis_x64-windows/share |
| 101 | + # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib |
| 102 | + |
| 103 | + - name: Install OpenBLAS |
| 104 | + run: vcpkg install openblas |
| 105 | + |
| 106 | + - name: Create build dir |
| 107 | + run: cmake -E make_directory ${{runner.workspace}}/build |
| 108 | + |
| 109 | + - name: Configure cmake |
| 110 | + shell: bash |
| 111 | + working-directory: ${{runner.workspace}}/build |
| 112 | + run: | |
| 113 | + cmake $GITHUB_WORKSPACE \ |
| 114 | + -DHIPO=ON \ |
| 115 | + -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 116 | +
|
| 117 | + # -DCMAKE_CXX_FLAGS="-I C:/vcpkg/packages/gklib_x64-windows/include/GKlib" |
| 118 | +
|
| 119 | + - name: Build |
| 120 | + shell: bash |
| 121 | + working-directory: ${{runner.workspace}}/build |
| 122 | + run: | |
| 123 | + cmake --build . --parallel --config Release |
| 124 | +
|
| 125 | + - name: Test executable |
| 126 | + shell: bash |
| 127 | + working-directory: ${{runner.workspace}}/build |
| 128 | + run: ./Release/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps |
| 129 | + |
| 130 | + debug: |
| 131 | + runs-on: ${{ matrix.os }} |
| 132 | + strategy: |
| 133 | + fail-fast: false |
| 134 | + matrix: |
| 135 | + os: [windows-latest] |
| 136 | + |
| 137 | + steps: |
| 138 | + - uses: actions/checkout@v4 |
| 139 | + |
| 140 | + # 2. Set up caching for vcpkg |
| 141 | + - name: Cache vcpkg |
| 142 | + uses: actions/cache@v3 |
| 143 | + with: |
| 144 | + path: | |
| 145 | + ./vcpkg/installed |
| 146 | + ./vcpkg/downloads |
| 147 | + key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} |
| 148 | + restore-keys: | |
| 149 | + vcpkg-${{ runner.os }}- |
| 150 | +
|
| 151 | + - name: Install METIS |
| 152 | + run: vcpkg install metis |
| 153 | + |
| 154 | + - name: Install OpenBLAS |
| 155 | + run: vcpkg install openblas |
| 156 | + |
| 157 | + - name: Create build dir |
| 158 | + run: cmake -E make_directory ${{runner.workspace}}/build |
| 159 | + |
| 160 | + - name: Configure cmake |
| 161 | + shell: bash |
| 162 | + working-directory: ${{runner.workspace}}/build |
| 163 | + run: | |
| 164 | + cmake $GITHUB_WORKSPACE \ |
| 165 | + -DHIPO=ON \ |
| 166 | + -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 167 | +
|
| 168 | + - name: Build |
| 169 | + shell: bash |
| 170 | + working-directory: ${{runner.workspace}}/build |
| 171 | + run: | |
| 172 | + cmake --build . --parallel --config Debug |
| 173 | +
|
| 174 | + - name: Test executable |
| 175 | + shell: bash |
| 176 | + working-directory: ${{runner.workspace}}/build |
| 177 | + run: ./Debug/bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps |
| 178 | + |
| 179 | + - name: Ctest |
| 180 | + shell: bash |
| 181 | + working-directory: ${{runner.workspace}}/build |
| 182 | + run: | |
| 183 | + ctest --parallel --timeout 300 --output-on-failure -C Debug |
0 commit comments