Skip to content

Commit b72b494

Browse files
committed
try msvc
1 parent 3fbe528 commit b72b494

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,17 @@ jobs:
5555
}' > test.c
5656
cat test.c
5757
58+
- name: Setup MSVC(Windows ARM64 only)
59+
uses: ilammy/msvc-dev-cmd@v1
60+
if: startsWith(matrix.os, 'win') && matrix.arch == 'arm64'
61+
with:
62+
arch: ${{ matrix.arch }}
63+
5864
- name: Build Test
5965
run: |
6066
cd test
6167
if [[ "${{ matrix.arch }}" == "arm64" && "${{ matrix.os }}" == win* ]]; then
62-
clang --target=aarch64-w64-windows-gnu test.c -o test.exe
68+
cl /EHsc test.c ../opencvsharp/lib/OpenCvSharpExtern.lib /link /OUT:test.exe
6369
else
6470
# For x64 architecture
6571
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -o test.exe

0 commit comments

Comments
 (0)