Skip to content

Commit f40cb5c

Browse files
committed
finish
1 parent d5a60df commit f40cb5c

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

.github/workflows/android.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ jobs:
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

.github/workflows/apple.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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/')
@@ -97,6 +97,7 @@ jobs:
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

.github/workflows/linux.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
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
@@ -56,14 +56,6 @@ jobs:
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'
@@ -74,3 +66,11 @@ jobs:
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

0 commit comments

Comments
 (0)