-
-
Notifications
You must be signed in to change notification settings - Fork 23
52 lines (43 loc) · 1.41 KB
/
dart_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
name: Dart Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
# flutter-version: '3.16.9'
channel: "stable"
- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt install curl git wget build-essential ffmpeg libgtk-3-dev libavcodec-dev python3 neovim cmake ninja-build libswscale-dev libavformat-dev libeigen3-dev ccache nasm
echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/linux:$LD_LIBRARY_PATH" >> $GITHUB_ENV
flutter pub get
dart run opencv_dart:setup -p linux -a x64
- name: Run tests
run: flutter test -x skip-workflow,no-local-files
test_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
# flutter-version: '3.16.9'
channel: "stable"
- name: Install dependencies
run: |
flutter pub get
dart run opencv_dart:setup -p windows -a x64
- name: Run tests
shell: pwsh
run: |
$env:PATH = "${{github.workspace}}\windows;${env:PATH}"
echo "PATH=$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
flutter test -x no-local-files