diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d0f11eb8..c7c08ea3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -82,6 +82,18 @@ jobs: echo "CGO_CPPFLAGS=-I${env:GITHUB_WORKSPACE}\opencv\build\install\include" >> $env:GITHUB_ENV echo "CGO_LDFLAGS=-L${env:GITHUB_WORKSPACE}\opencv\build\install\x64\mingw\lib -lopencv_core4100 -lopencv_face4100 -lopencv_videoio4100 -lopencv_imgproc4100 -lopencv_highgui4100 -lopencv_imgcodecs4100 -lopencv_objdetect4100 -lopencv_features2d4100 -lopencv_video4100 -lopencv_dnn4100 -lopencv_xfeatures2d4100 -lopencv_plot4100 -lopencv_tracking4100 -lopencv_img_hash4100 -lopencv_calib3d4100 -lopencv_bgsegm4100 -lopencv_photo4100 -lopencv_aruco4100 -lopencv_wechat_qrcode4100 -lopencv_ximgproc4100 -lopencv_xphoto4100" >> $env:GITHUB_ENV echo "${env:GITHUB_WORKSPACE}/opencv/build/install/x64/mingw/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + + - name: Install Caffe test model + shell: bash + run: | + curl -sL https://raw.githubusercontent.com/opencv/opencv_extra/c4219d5eb3105ed8e634278fad312a1a8d2c182d/testdata/tracking/goturn.prototxt > ${env:GITHUB_WORKSPACE}/goturn.prototxt + curl -sL https://github.com/opencv/opencv_extra/raw/c4219d5eb3105ed8e634278fad312a1a8d2c182d/testdata/tracking/goturn.caffemodel.zip.001 > ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.001 + curl -sL https://github.com/opencv/opencv_extra/raw/c4219d5eb3105ed8e634278fad312a1a8d2c182d/testdata/tracking/goturn.caffemodel.zip.002 > ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.002 + curl -sL https://github.com/opencv/opencv_extra/raw/c4219d5eb3105ed8e634278fad312a1a8d2c182d/testdata/tracking/goturn.caffemodel.zip.003 > ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.003 + curl -sL https://github.com/opencv/opencv_extra/raw/c4219d5eb3105ed8e634278fad312a1a8d2c182d/testdata/tracking/goturn.caffemodel.zip.004 > ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.004 + cat ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.001 ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.002 ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.003 ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip.004 > ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip + unzip -o ${env:GITHUB_WORKSPACE}/goturn.caffemodel.zip goturn.caffemodel -d ${env:GITHUB_WORKSPACE}/ + - name: Test GoCV run: | go env