Skip to content

Commit 9158f22

Browse files
committed
simplify code
1 parent 49e2084 commit 9158f22

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,26 +147,18 @@ jobs:
147147
export MSYS2_ARG_CONV_EXCL="*"
148148
cl /nologo /EHsc test.c ../opencvsharp/lib/OpenCvSharpExtern.lib /link /OUT:test.exe
149149
else
150-
# For x64 architecture
151150
gcc test.c -L../opencvsharp/lib -lOpenCvSharpExtern -o test.exe
152151
fi
153152
ls -lR
154153
155-
- name: Run Test
156-
run: |
157-
if [[ "${{ matrix.os }}" == osx* ]]; then
158-
export DYLD_LIBRARY_PATH=${{ github.workspace }}/opencvsharp/lib:$DYLD_LIBRARY_PATH
159-
elif [[ "${{ matrix.os }}" == win* ]]; then
160-
export PATH="$(cygpath -u "${{ github.workspace }}/opencvsharp/lib")":$PATH
161-
else
162-
export LD_LIBRARY_PATH=${{ github.workspace }}/opencvsharp/lib:$LD_LIBRARY_PATH
163-
fi
164-
cd test && ./test.exe
165-
166154
- name: Copy opencvsharp/lib to test
167155
run: |
168156
cp -r opencvsharp/lib/* test
169157
158+
- name: Run Test
159+
run: |
160+
cd test && ./test.exe
161+
170162
- name: Upload Artifacts
171163
uses: actions/upload-artifact@v4
172164
with:

0 commit comments

Comments
 (0)