File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed
Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -158,3 +158,34 @@ jobs:
158158 working-directory : ${{runner.workspace}}/build
159159 run : |
160160 ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}
161+
162+ # linux shared is default, static build tested in the release artifacts
163+ # windows static is default so test shared
164+ windows_shared :
165+ runs-on : [windows-latest]
166+
167+ steps :
168+ - uses : actions/checkout@v4
169+
170+ - name : Configure CMake
171+ shell : pwsh
172+ run : |
173+ cmake `
174+ -S "$env:GITHUB_WORKSPACE" `
175+ -B "${{ runner.workspace }}/build" `
176+ -DHIPO=ON `
177+ -DBUILD_OPENBLAS=ON `
178+ -DBUILD_SHARED_LIBS=ON
179+
180+ - name : Build
181+ shell : pwsh
182+ working-directory : ${{runner.workspace}}/build
183+ run : |
184+ cmake --build . --parallel --config ${{ matrix.config }}
185+
186+ - name : Test executable
187+ shell : pwsh
188+ working-directory : ${{runner.workspace}}/build
189+ run : |
190+ & ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
191+ "$env:GITHUB_WORKSPACE/check/instances/afiro.mps"
Original file line number Diff line number Diff line change 8282 - name : Build
8383 run : |
8484 cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }} `
85- -DHIPO=ON -DBUILD_OPENBLAS=ON -DBUILD_STATIC_EXE=ON `
86- -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL
85+ -DHIPO=ON -DBUILD_OPENBLAS=ON -DBUILD_STATIC_EXE=ON
8786 cmake --build build --config Release --parallel
8887 cd build
8988 cpack -C Release
@@ -108,12 +107,12 @@ jobs:
108107 run : |
109108 cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }} `
110109 -DHIPO=ON -DBUILD_OPENBLAS=ON -DBUILD_STATIC_EXE=ON `
111- -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL `
112- -DCMAKE_VS_WINDOWS_SDK_VERSION=10.0.20348.0
113110 cmake --build build --config Release --parallel
114111 cd build
115112 cpack -C Release
116113
114+ # -DCMAKE_VS_WINDOWS_SDK_VERSION=10.0.20348.0
115+
117116 - name : Upload artifacts
118117 uses : actions/upload-artifact@v4
119118 with :
You can’t perform that action at this time.
0 commit comments