-
Notifications
You must be signed in to change notification settings - Fork 424
97 lines (75 loc) · 2.8 KB
/
test-dart-package.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: test-dart-package
on:
schedule:
# minute (0-59)
# hour (0-23)
# day of the month (1-31)
# month (1-12)
# day of the week (0-6)
# nightly build at 15:50 UTC time every day
- cron: "50 15 * * *"
workflow_dispatch:
concurrency:
group: test-dart-package-${{ github.ref }}
cancel-in-progress: true
jobs:
test_dart_package:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest] #, windows-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v3
with:
channel: stable
version: latest
- name: Display flutter info
shell: bash
run: |
which flutter
which dart
flutter --version
dart --version
flutter doctor
- name: Display sherpa-onnx package info
shell: bash
run: |
cd dart-api-examples/vad
flutter pub get
if [[ ${{ matrix.os }} == ubuntu-latest ]]; then
echo "-----"
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev
echo "-----"
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx*
echo "-----"
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx*/*
echo "-----"
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-*
# sudo mkdir /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-1.10.7/lib
# sudo touch /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-1.10.7/lib/.gitkeep
echo "-----"
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-*/linux
elif [[ ${{ matrix.os }} == macos-latest ]]; then
echo "-----"
ls -lh /Users/runner/work/_temp/pub-cache/hosted/pub.dev
echo "-----"
ls -lh /Users/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx*
echo "-----"
ls -lh /Users/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx*/*
echo "-----"
ls -lh /Users/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_macos-*/
echo "-----"
ls -lh /Users/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_macos-*/macos
# sudo mkdir /Users/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_macos-1.10.7/lib
# sudo touch /Users/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_macos-1.10.7/lib/.gitkeep
fi
- name: Run tests
shell: bash
run: |
.github/scripts/test-dart.sh