Skip to content

Commit a78ffb9

Browse files
committed
specify target for arm64
1 parent f0977c2 commit a78ffb9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ jobs:
5858
- name: Build Test
5959
run: |
6060
cd test
61-
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -o test.exe
61+
if [[ "${{ matrix.arch }}" == "arm64" && "${{ matrix.os }}" == win* ]]; then
62+
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -o test.exe --target=aarch64-w64-mingw32
63+
else
64+
# For x64 architecture
65+
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -o test.exe
66+
fi
6267
ls -lR
6368
6469
- name: Run Test
@@ -77,4 +82,4 @@ jobs:
7782
uses: actions/upload-artifact@v4
7883
with:
7984
name: test-${{ matrix.os }}-${{ matrix.arch }}
80-
path: test.exe
85+
path: test

0 commit comments

Comments
 (0)