File tree Expand file tree Collapse file tree 3 files changed +26
-24
lines changed Expand file tree Collapse file tree 3 files changed +26
-24
lines changed Original file line number Diff line number Diff line change 3737 - name : build
3838 run : |
3939 cd build
40- cmake ${{ env.COMMON_CMAKE_OPTIONS }} -DANDROID_ABI="${{ matrix.abi }}" \
40+ cmake -S ${{ github.workspace }} \
41+ ${{ env.COMMON_CMAKE_OPTIONS }} -DANDROID_ABI="${{ matrix.abi }}" \
4142 -DOpenCV_DIR=${{ github.workspace }}/build/opencv/sdk/native/jni \
42- -DANDROID_ARM_NEON=ON ..
43+ -DANDROID_ARM_NEON=ON
4344
4445 cmake --build . --config Release -j $(nproc)
4546 cmake --build . --config Release --target install
Original file line number Diff line number Diff line change @@ -61,17 +61,17 @@ jobs:
6161 with :
6262 path : build/install/libopencv_dart.dylib
6363 name : libopencv_dart-macos-${{ matrix.osname.arch }}
64- # - uses: subosito/flutter-action@v2
65- # with:
66- # flutter-version: '3.19.6'
67- # channel: "stable"
68- # - name: test
69- # run: |
70- # cp -rf build/install/* macos/
71- # ls -alh macos
72- # export OPENCV_DART_LIB_PATH="${{github.workspace}}/macos/libopencv_dart.dylib"
73- # dart pub get
74- # dart test -x skip-workflow,no-local-files
64+ - uses : subosito/flutter-action@v2
65+ with :
66+ flutter-version : ' 3.19.6'
67+ channel : " stable"
68+ - name : test
69+ run : |
70+ cp -rf build/install/* macos/
71+ ls -alh macos
72+ export OPENCV_DART_LIB_PATH="${{github.workspace}}/macos/libopencv_dart.dylib"
73+ dart pub get
74+ dart test -x skip-workflow,no-local-files
7575 - name : release
7676 uses : softprops/action-gh-release@v1
7777 if : startsWith(github.ref, 'refs/tags/')
9797 ls -R
9898 cd artifacts
9999 lipo -create -output libopencv_dart.dylib */libopencv_dart.dylib
100+ lipo -info libopencv_dart.dylib
100101 tar -zcvf libopencv_dart-macos-os64.tar.gz libopencv_dart.dylib
101102 - name : create-release
102103 uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change 4242 - name : build
4343 run : |
4444 cd build
45- cmake ${{ env.COMMON_CMAKE_OPTIONS }} \
46- -DOpenCV_DIR= ${{ github.workspace }}/build/opencv/lib/cmake/opencv4 \
47- ..
45+ cmake -S ${{ github.workspace }} \
46+ ${{ env.COMMON_CMAKE_OPTIONS }} \
47+ -DOpenCV_DIR=${{ github.workspace }}/build/opencv/lib/cmake/opencv4
4848
4949 cmake --build . --config Release -j $(nproc)
5050 cmake --build . --config Release --target install
5656 with :
5757 path : libopencv_dart-linux-${{ matrix.arch }}.tar.gz
5858 name : libopencv_dart-linux-${{ matrix.arch }}.tar.gz
59- - name : release
60- uses : softprops/action-gh-release@v1
61- if : startsWith(github.ref, 'refs/tags/')
62- with :
63- draft : true
64- prerelease : false
65- files : |
66- libopencv_dart-linux-${{ matrix.arch }}.tar.gz
6759 - uses : subosito/flutter-action@v2
6860 with :
6961 flutter-version : ' 3.19.6'
7466 export OPENCV_DART_LIB_PATH="${{github.workspace}}/linux/libopencv_dart.so"
7567 dart pub get
7668 dart test -x skip-workflow,no-local-files
69+ - name : release
70+ uses : softprops/action-gh-release@v1
71+ if : startsWith(github.ref, 'refs/tags/')
72+ with :
73+ draft : true
74+ prerelease : false
75+ files : |
76+ libopencv_dart-linux-${{ matrix.arch }}.tar.gz
You can’t perform that action at this time.
0 commit comments