Update test.yaml #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
ANDROID_NDK_VERSION: r26c | |
OPENCV_VERSION: 4.9.0 | |
LIB_NAME: libopencv_dart | |
jobs: | |
build-ubuntu: | |
name: build-ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: setup | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl git wget python3 unzip build-essential \ | |
libgtk-3-dev ffmpeg libavcodec-dev \ | |
cmake ninja-build ccache nasm libavformat-dev libavutil-dev \ | |
libswscale-dev libgflags-dev \ | |
libjpeg-dev libpng-dev libtiff-dev python3-pip | |
python3 -m pip install conan | |
conan profile detect -f | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: build-opencv-dart | |
run: | | |
conan build . -b missing -c tools.cmake.cmaketoolchain:generator=Ninja | |
- uses: subosito/flutter-action@v2 | |
with: | |
# flutter-version: '3.16.9' | |
channel: "stable" | |
- uses: actions/upload-artifact@v4 | |
name: upload-linux-x64 | |
with: | |
path: build/publish/libopencv_dart-linux-x64.tar.gz | |
name: libopencv_dart-linux-x64.tar.gz | |
- name: Run Test | |
run: | | |
export LD_LIBRARY_PATH="${{github.workspace}}/linux:$LD_LIBRARY_PATH" | |
flutter pub get | |
flutter test -x skip-workflow,no-local-files |