-
Notifications
You must be signed in to change notification settings - Fork 205
238 lines (217 loc) · 6.25 KB
/
ci.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
name: CI
# Should run only on branches and PR, as "on_tag.yml" will handle tags
on:
push:
branches: master test
pull_request:
branches: master
jobs:
#
# Linux
#
Ubuntu:
name: Ubuntu debuild
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake autopoint autotools-dev \
gettext libdbus-1-dev pkg-config xmlto \
devscripts build-essential lintian \
debhelper-compat \
dh-exec libdbus-1-dev \
libmagick++-dev libv4l-dev python3-dev \
libgtk-3-dev lftp \
dh-sequence-python3 libgtk2.0-dev \
libqt5x11extras5-dev qtbase5-dev
- name: build
run: |
.github/workflows/debuilder.sh
Ubuntu_Gtk2:
name: Ubuntu with Gtk2
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
sudo apt update
sudo apt-get install -y autoconf automake autopoint autotools-dev \
gettext libdbus-1-dev libgtk2.0-dev libmagick++-dev \
libqt5x11extras5-dev libv4l-dev libx11-dev openjdk-8-jdk-headless \
perl pkg-config python-all-dev python-all-dbg python-gtk2-dev \
qt5-default xmlto
- name: configure
run: |
autoreconf -vfi
export QT_SELECT=5
./configure
- name: build
run:
make
- name: check
run:
make check-local
- name: install
run:
sudo make install
Ubuntu_Gtk3:
name: Ubuntu with Gtk3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
sudo apt update
sudo apt-get install -y autoconf automake autopoint autotools-dev \
gettext libdbus-1-dev gir1.2-gtk-3.0 libgtk-3-dev \
libgirepository1.0-dev libmagick++-dev libqt5x11extras5-dev \
libv4l-dev libx11-dev openjdk-8-jdk-headless perl \
pkg-config python3-minimal python3-dev python3 python3-gi \
qt5-default xmlto
- name: configure
run: |
autoreconf -vfi
# Let configure get this
unset PYTHON_CFLAGS PYTHON
export QT_SELECT=5
./configure --with-gtk=gtk3 --with-python=python3
- name: build
run:
make
- name: check
run:
make check-local
- name: install
run:
sudo make install
Mingw_w64_VfW:
name: Mingw-w64 VfW
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
sudo apt update
sudo apt-get install -y autoconf automake autopoint autotools-dev \
gettext libdbus-1-dev pkg-config win-iconv-mingw-w64-dev \
binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev \
mingw-w64-common xmlto
- name: configure
run: |
export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
autoreconf -vfi
CC=i686-w64-mingw32-gcc ./configure \
--host=i686-w64-mingw32 --prefix=/usr/local/win32 \
--without-gtk --without-python --without-qt --without-java \
--without-imagemagick --enable-pthread
- name: build
run:
make
- name: install
run:
sudo make install
Mingw_w64_DShow:
name: Mingw-w64 DShow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
sudo apt update
sudo apt-get install -y autoconf automake autopoint autotools-dev \
gettext libdbus-1-dev pkg-config win-iconv-mingw-w64-dev \
binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev \
mingw-w64-common xmlto
- name: configure
run: |
export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
autoreconf -vfi
CC=i686-w64-mingw32-gcc ./configure \
--host=i686-w64-mingw32 --prefix=/usr/local/win32 \
--without-gtk --without-python --without-qt --without-java \
--without-imagemagick --enable-pthread \
--with-directshow
- name: build
run:
make
- name: install
run:
sudo make install
#
# Mac OS
#
Mac_OS:
name: Mac OS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
brew install gettext autoconf automake libiconv libtool \
gs graphicsmagick python xmlto pkg-config ccache
brew unlink libtool && brew link libtool
brew unlink gettext && brew link gettext
- name: configure
run:
autoreconf -vfi
./configure --disable-video --disable-nls --with-python=python3
- name: build
run: |
make
sudo make install
#
# Windows
#
Windows:
name: Windows
runs-on: windows-latest
strategy:
matrix:
arch: [x86_64, i686]
video: [VfW, DShow]
include:
- arch: x86_64
msystem: MINGW64
grep: x86-64
- arch: i686
msystem: MINGW32
grep: 386
- video: DShow
extra: --with-directshow
- video: VfW
extra:
defaults:
run:
shell: msys2 {0}
env:
CPPFLAGS: -D__USE_MINGW_ANSI_STDIO=1
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: false
install: >-
mingw-w64-${{ matrix.arch }}-gcc
mingw-w64-${{ matrix.arch }}-iconv
mingw-w64-${{ matrix.arch }}-imagemagick
mingw-w64-${{ matrix.arch }}-python
base-devel git xmlto
autoconf libtool automake gettext make autoconf-archive pkg-config
- uses: actions/checkout@v2
- name: configure
shell: msys2 {0}
run: |
autoreconf -vfi
./configure LDFLAGS="-static" \
--enable-pthread --disable-dependency-tracking \
${{ matrix.extra }}
- name: build
shell: msys2 {0}
run:
make
- name: install
shell: msys2 {0}
run:
make install