Skip to content

support linux arm64, windows arm64 ios simulator arm64 #38

support linux arm64, windows arm64 ios simulator arm64

support linux arm64, windows arm64 ios simulator arm64 #38

Workflow file for this run

name: windows
on:
push:
branches: ["main"]
tags:
- "v*.*.*"
pull_request:
branches: [ "main" ]
jobs:
windows:
name: windows
runs-on: windows-2019
strategy:
matrix:
arch: [x64]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: robinraju/[email protected]
with:
repository: "rainyl/opencv.full"
latest: true
fileName: "libopencv-windows-${{ matrix.arch }}.tar.gz"
out-file-path: "build/opencv"
extract: true
- name: build
run: |
cd build
cmake -T v142,host=x64 `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_INSTALL_PREFIX=install `
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW `
-DCVD_PLATFORM_INSTALL_DIR="${{ github.workspace }}/windows" `
-DFFMPEG_DIR=${{ github.workspace }}/build/opencv/ffmpeg/cmake `
-DOpenCV_DIR=${{ github.workspace }}/build/opencv ..
cmake --build . --config Release -j $(nproc)
cmake --build . --config Release --target install
- name: package
run: |
tar -C build/install -zcvf libopencv_dart-windows-${{ matrix.arch }}.tar.gz .
- uses: actions/upload-artifact@v4
name: upload
with:
path: libopencv_dart-windows-${{ matrix.arch }}.tar.gz
name: libopencv_dart-windows-${{ matrix.arch }}.tar.gz
- uses: robinraju/[email protected]
with:
repository: "rainyl/opencv_dart"
tag: "dnn_test_files"
fileName: "models.zip"
out-file-path: "test/"
extract: true
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: test coverage
run: |
cd "${{github.workspace}}"
ls windows
$env:PATH="${{github.workspace}}\windows;$env:PATH"
dart pub global activate coverage
dart pub global run coverage:test_with_coverage --package . --package-name opencv_dart
- name: Upload to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: rainyl/opencv_dart
file: ./coverage/lcov.info
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
prerelease: false
files: |
libopencv_dart-windows-${{ matrix.arch }}.tar.gz
windows-arm64:
name: windows
runs-on: windows-2019
strategy:
matrix:
arch: [arm64]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: robinraju/[email protected]
with:
repository: "rainyl/opencv.full"
latest: true
fileName: "libopencv-windows-${{ matrix.arch }}.tar.gz"
out-file-path: "build/opencv"
extract: true
- name: build
run: |
cd build
cmake -T v142,host=x64 `
-A ARM64 `
-DCMAKE_SYSTEM_NAME=Windows `
-DCMAKE_SYSTEM_PROCESSOR=ARM64 `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_INSTALL_PREFIX=install `
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW `
-DCVD_PLATFORM_INSTALL_DIR="${{ github.workspace }}/windows" `
-DFFMPEG_DIR=${{ github.workspace }}/build/opencv/ffmpeg/cmake `
-DOpenCV_DIR=${{ github.workspace }}/build/opencv ..
cmake --build . --config Release -j $(nproc)
cmake --build . --config Release --target install
- name: package
run: |
tar -C build/install -zcvf libopencv_dart-windows-${{ matrix.arch }}.tar.gz .
- uses: actions/upload-artifact@v4
name: upload
with:
path: libopencv_dart-windows-${{ matrix.arch }}.tar.gz
name: libopencv_dart-windows-${{ matrix.arch }}.tar.gz
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: test
run: |
cd "${{github.workspace}}"
ls windows
$env:PATH="${{github.workspace}}\windows;$env:PATH"
dart test
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
prerelease: false
files: |
libopencv_dart-windows-${{ matrix.arch }}.tar.gz