-
Notifications
You must be signed in to change notification settings - Fork 3
160 lines (158 loc) · 4.48 KB
/
test.yml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
---
on: [push]
name: Tests
jobs:
test-linux:
runs-on: ubuntu-22.04
steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
large-packages: false # llvm is removed in here
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install \
libasound2-dev \
libavahi-client-dev \
xorg-dev \
libgtk-3-dev \
libclang-dev \
libudev-dev \
libunwind-dev \
curl \
lld \
ffmpeg \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libpostproc-dev \
libswresample-dev \
libswscale-dev \
libass-dev \
libfreetype6-dev \
libgnutls28-dev \
libsdl2-dev \
libtool \
libva-dev \
libvdpau-dev \
libvorbis-dev \
libxcb1-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
zlib1g-dev \
libx264-dev \
libx265-dev \
libnuma-dev \
libvpx-dev \
libmp3lame-dev \
libopus-dev \
libraw1394-dev \
libdc1394-dev \
libavc1394-dev \
libiec61883-dev \
libjack-dev \
libfaad-dev \
libgsm1-dev \
libzmq3-dev \
libssh-dev \
libbluray-dev \
libopenmpt-dev \
ocl-icd-opencl-dev \
libogg-dev \
libspeex-dev \
libtheora-dev \
flite1-dev \
libchromaprint-dev \
libopenal-dev \
libcdio-dev \
libcaca-dev \
libpocketsphinx-dev \
libsphinxbase-dev \
libbs2b-dev \
liblilv-dev \
libsratom-dev \
libsord-dev \
libserd-dev \
librubberband-dev \
libsamplerate0-dev \
libmysofa-dev \
libvidstab-dev \
libgme-dev \
librabbitmq-dev \
libdav1d-dev \
libzvbi-dev \
libsnappy-dev \
libaom-dev \
libcodec2-dev \
libshine-dev \
libtwolame-dev \
libwebp-dev \
libxvidcore-dev \
libsoxr-dev \
libcdio-paranoia-dev \
libcdio-cdda-dev \
libsrt-gnutls-dev \
libmfx-dev \
libvorbis-dev \
libwavpack-dev \
libzimg-dev \
yasm
- uses: taiki-e/install-action@protoc
- uses: nschloe/action-cached-lfs-checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: subosito/flutter-action@v2
with:
channel: stable
- uses: Swatinem/rust-cache@v2
- name: Remove ndi libs from cache
run: rm -rf target/debug/deps/libndi* target/debug/build/ndi-*
- name: Remove linked flutter libs from cache
run: rm -rf target/debug/lib target/debug/deps/libflutter_linux_gtk.so
- name: Generate FFI bindings
run: make generate_bindings
working-directory: crates/ui
- name: Generate protobuf code
run: make proto
working-directory: crates/ui
- name: Clippy Checks
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- uses: taiki-e/install-action@nextest
- name: Tests
run: make test
test-android:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v4
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install libclang-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install cbindgen binary crate
uses: actions-rs/install@v0.1
with:
crate: cbindgen
version: latest
use-tool-cache: true
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Generate FFI bindings
run: make generate_bindings
working-directory: crates/ui
- name: Generate protobuf code
run: make proto
working-directory: crates/ui
- run: flutter test
working-directory: crates/ui