Skip to content

Commit f9d6353

Browse files
committed
try to debug windows
1 parent 3f266b7 commit f9d6353

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

.github/workflows/hipo-win-ssh.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: hipo-win-ssh
2+
3+
on: [push]
4+
5+
jobs:
6+
win-521-ts-ssh:
7+
runs-on: windows-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
config: [Debug]
12+
all_tests: [ON]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Checkout METIS
18+
uses: actions/checkout@v4
19+
with:
20+
repository: galabovaa/METIS
21+
ref: 521-ts
22+
path: METIS
23+
24+
- name: Create installs dir
25+
working-directory: ${{runner.workspace}}
26+
run: |
27+
ls
28+
mkdir installs
29+
ls
30+
31+
- name: Install METIS
32+
shell: pwsh
33+
run: |
34+
cd METIS
35+
pwd
36+
cmake -S. -B build `
37+
-DGKLIB_PATH="$env:GITHUB_WORKSPACE/METIS/GKlib" `
38+
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}/installs" `
39+
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
40+
cmake --build build --parallel --config ${{ matrix.config }}
41+
cmake --install build --config ${{ matrix.config }}
42+
43+
- name: Install OpenBLAS
44+
shell: pwsh
45+
run: vcpkg install openblas[threads]
46+
47+
- name: Configure CMake
48+
shell: pwsh
49+
run: |
50+
cmake `
51+
-S "$env:GITHUB_WORKSPACE" `
52+
-B "${{ runner.workspace }}/build" `
53+
-DHIPO=ON `
54+
-DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" `
55+
-DMETIS_ROOT="${{ runner.workspace }}/installs" `
56+
-DALL_TESTS=${{ matrix.all_tests }}
57+
58+
- name: Build
59+
shell: pwsh
60+
working-directory: ${{runner.workspace}}/build
61+
run: |
62+
cmake --build . --parallel --config ${{ matrix.config }}
63+
64+
- name: Setup tmate session
65+
uses: mxschmitt/action-tmate@v3
66+
67+
- name: Test executable
68+
shell: pwsh
69+
working-directory: ${{runner.workspace}}/build
70+
run: |
71+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
72+
"$env:GITHUB_WORKSPACE/check/instances/afiro.mps"
73+
74+
- name: Ctest
75+
shell: pwsh
76+
working-directory: ${{runner.workspace}}/build
77+
run: |
78+
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}

0 commit comments

Comments
 (0)