From acb0a7b52f9fd93de3f8112eb5e1869c652221b5 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 30 Mar 2024 12:27:32 +0100 Subject: [PATCH] build: appease windows Signed-off-by: deadprogram --- .github/workflows/windows.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 86e70c9c..182b9649 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -75,18 +75,17 @@ jobs: key: ${{ steps.cache-opencv-build.outputs.cache-primary-key }} path: | ./opencv/build - - name: Test GoCV + - name: Set GoCV env run: | go env echo "CGO_CXXFLAGS=--std=c++11" >> $env:GITHUB_ENV 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_core490 -lopencv_face490 -lopencv_videoio490 -lopencv_imgproc490 -lopencv_highgui490 -lopencv_imgcodecs490 -lopencv_objdetect490 -lopencv_features2d490 -lopencv_video490 -lopencv_dnn490 -lopencv_xfeatures2d490 -lopencv_plot490 -lopencv_tracking490 -lopencv_img_hash490 -lopencv_calib3d490 -lopencv_bgsegm490 -lopencv_photo490 -lopencv_aruco490 -lopencv_wechat_qrcode490 -lopencv_ximgproc490" >> $env:GITHUB_ENV echo "${env:GITHUB_WORKSPACE}/opencv/build/install/x64/mingw/bin" >> $GITHUB_PATH + - name: Test GoCV + run: | + go env go test -v -tags=customenv . - name: Test GoCV Contrib run: | - echo "CGO_CXXFLAGS=--std=c++11" >> $env:GITHUB_ENV - 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_core490 -lopencv_face490 -lopencv_videoio490 -lopencv_imgproc490 -lopencv_highgui490 -lopencv_imgcodecs490 -lopencv_objdetect490 -lopencv_features2d490 -lopencv_video490 -lopencv_dnn490 -lopencv_xfeatures2d490 -lopencv_plot490 -lopencv_tracking490 -lopencv_img_hash490 -lopencv_calib3d490 -lopencv_bgsegm490 -lopencv_photo490 -lopencv_aruco490 -lopencv_wechat_qrcode490 -lopencv_ximgproc490" >> $env:GITHUB_ENV - echo "${env:GITHUB_WORKSPACE}/opencv/build/install/x64/mingw/bin" >> $GITHUB_PATH go test -v -tags="matprofile,customenv" ./contrib