-
-
Notifications
You must be signed in to change notification settings - Fork 21
57 lines (53 loc) · 1.65 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
52
53
54
55
56
57
name: Coverage
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-windows:
name: build-windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: robinraju/[email protected]
with:
repository: "rainyl/opencv_dart"
tag: "dnn_test_files"
fileName: "models.zip"
out-file-path: "test/"
extract: true
- name: build-opencv-dart
run: |
ls test
ls test/models
python3 -m pip install conan
conan profile detect -f
conan build . -b missing -s compiler.cppstd=20 -o package_root="$PWD" -o output_dir="$PWD\build\windows"
- uses: actions/upload-artifact@v4
name: upload-windows-x64
with:
path: build/publish/libopencv_dart-windows-x64.tar.gz
name: libopencv_dart-windows-x64.tar.gz
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.6'
channel: "stable"
- name: setup 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 coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: rainyl/opencv_dart
file: ./coverage/lcov.info