-
-
Notifications
You must be signed in to change notification settings - Fork 22
51 lines (45 loc) · 1.4 KB
/
build_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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