-
Notifications
You must be signed in to change notification settings - Fork 19
250 lines (248 loc) · 10.3 KB
/
Copy pathMediaConch_Checks.yml
File metadata and controls
250 lines (248 loc) · 10.3 KB
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
239
240
241
242
243
244
245
246
247
248
249
250
name: Checks
on: [push, pull_request]
jobs:
unix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
PYTHONPATH: /usr/local/lib/python2.7:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y zlib1g-dev libxml2-dev libxslt-dev libcurl4-gnutls-dev libsqlite3-dev libjansson-dev libevent-dev libxml2-utils qtbase5-dev qtwebengine5-dev qt5-qmake xmlstarlet ffmpeg sshpass
sudo curl -L http://stahlworks.com/dev/sfk/sfk-linux-64.exe -o /usr/local/bin/sfk
sudo chmod +x /usr/local/bin/sfk
pip --disable-pip-version-check install git+https://github.com/vi/mkvparse.git
fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew install libtool automake libxslt jansson qt sfk xmlstarlet ffmpeg
sudo pip --disable-pip-version-check install --prefix /usr/local git+https://github.com/vi/mkvparse.git
fi
- name: Get ZenLib info
id: zenlib-info
run: |
echo "hash=$(git ls-remote https://github.com/MediaArea/ZenLib.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
echo "path=$(dirname $PWD)/ZenLib" >> $GITHUB_OUTPUT
- name: ZenLib cache
id: zenlib-cache
uses: actions/cache@v4
with:
path: ${{ steps.zenlib-info.outputs.path }}
key: ${{ runner.os }}-ZenLib-${{ steps.zenlib-info.outputs.hash }}
- name: ZenLib
if: steps.zenlib-cache.outputs.cache-hit != 'true'
run: |
git -C .. clone --depth=1 https://github.com/MediaArea/ZenLib.git
pushd ../ZenLib/Project/GNU/Library
autoreconf -if
./configure --enable-static
make
popd
- name: Get MediaInfoLib info
id: mediainfolib-info
run: |
echo "hash=$(git ls-remote https://github.com/MediaArea/MediaInfoLib.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
echo "path=$(dirname $PWD)/MediaInfoLib" >> $GITHUB_OUTPUT
- name: MediaInfoLib cache
id: mediainfolib-cache
uses: actions/cache@v4
with:
path: ${{ steps.mediainfolib-info.outputs.path }}
key: ${{ runner.os }}-MediaInfoLib-${{ steps.mediainfolib-info.outputs.hash }}
- name: MediaInfoLib
if: steps.mediainfolib-cache.outputs.cache-hit != 'true'
run: |
git -C .. clone --depth=1 https://github.com/MediaArea/MediaInfoLib.git
pushd ../MediaInfoLib/Project/GNU/Library
autoreconf -if
./configure --enable-static
make
popd
- name: Configure
run: |
cd Project/GNU/CLI
autoreconf -if
./configure
- name: Build
run: |
cd Project/GNU/CLI
make
- name: Check files
run: |
cd Project/GNU/CLI
make clone_sample_files
- name: Check
run: |
cd Project/GNU/CLI
make check
- name: Configure GUI
run: |
cd Project/Qt
export PATH=/opt/homebrew/opt/qt/bin:$PATH
./prepare -after QMAKE_MACOSX_DEPLOYMENT_TARGET=11.0
- name: Build GUI
run: |
cd Project/Qt
export PATH=/usr/local/opt/qt/bin:$PATH
make
windows:
strategy:
matrix:
include:
- arch: Win32
qt_ver: 5.15
qt_arch: win32_msvc2019
- arch: x64
qt_ver: 5.15
qt_arch: win64_msvc2019_64
fail-fast: false
name: Windows (${{ matrix.arch }})
runs-on: windows-latest
steps:
- name: Set up Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.qt_ver }}
arch: ${{ matrix.qt_arch }}
modules: qtwebengine
- name: Get zlib info
id: zlib-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/zlib.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\zlib') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: zlib cache
id: zlib-cache
uses: actions/cache@v4
with:
path: ${{ steps.zlib-info.outputs.path }}
key: windows-${{ matrix.arch }}-zlib-${{ steps.zlib-info.outputs.hash }}
- name: Checkout zlib
if: steps.zlib-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/zlib
path: zlib
- name: Get libxml2 info
id: libxml2-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/libxml2.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\libxml2') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: libxml2 cache
id: libxml2-cache
uses: actions/cache@v4
with:
path: ${{ steps.libxml2-info.outputs.path }}
key: windows-${{ matrix.arch }}-libxml2-${{ steps.libxml2-info.outputs.hash }}
- name: Checkout libxml2
if: steps.libxml2-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/libxml2
path: libxml2
- name: Get libxslt info
id: libxslt-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/libxslt.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\libxslt') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: libxslt cache
id: libxslt-cache
uses: actions/cache@v4
with:
path: ${{ steps.libxslt-info.outputs.path }}
key: windows-${{ matrix.arch }}-libxslt-${{ steps.libxslt-info.outputs.hash }}
- name: Checkout libxslt
if: steps.libxslt-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/libxslt
path: libxslt
- name: Get libevent info
id: libevent-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/libevent.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\libevent') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: libevent cache
id: libevent-cache
uses: actions/cache@v4
with:
path: ${{ steps.libevent-info.outputs.path }}
key: windows-${{ matrix.arch }}-libevent-${{ steps.libevent-info.outputs.hash }}
- name: Checkout libevent
if: steps.libevent-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/libevent
path: libevent
- name: Get jansson info
id: jansson-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/jansson.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\jansson') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: jansson cache
id: jansson-cache
uses: actions/cache@v4
with:
path: ${{ steps.jansson-info.outputs.path }}
key: windows-${{ matrix.arch }}-jansson-${{ steps.jansson-info.outputs.hash }}
- name: Checkout jansson
if: steps.jansson-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/jansson
path: jansson
- name: Get ZenLib info
id: zenlib-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/ZenLib.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\ZenLib') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: ZenLib cache
id: zenlib-cache
uses: actions/cache@v4
with:
path: ${{ steps.zenlib-info.outputs.path }}
key: windows-${{ matrix.arch }}-zenlib-${{ steps.zenlib-info.outputs.hash }}
- name: Checkout ZenLib
if: steps.zenlib-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/ZenLib
path: ZenLib
- name: Get MediaInfoLib info
id: mediainfolib-info
run: |
('hash=' + ((git ls-remote https://github.com/MediaArea/MediaInfoLib.git HEAD) -Split "`t")[0]) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
('path=' + (Get-Location) + '\MediaInfoLib') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: MediaInfoLib cache
id: mediainfolib-cache
uses: actions/cache@v4
with:
path: ${{ steps.mediainfolib-info.outputs.path }}
key: windows-${{ matrix.arch }}-mediainfolib-${{ steps.mediainfolib-info.outputs.hash }}
- name: Checkout MediaInfoLib
if: steps.mediainfolib-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: MediaArea/MediaInfoLib
path: MediaInfoLib
- name: Checkout MediaConch
uses: actions/checkout@v4
with:
path: MediaConch
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Build
run: |
$Env:IncludePath="$Env:QT_ROOT_DIR\include\QtGui;$Env:QT_ROOT_DIR\include\QtWidgets;$Env:QT_ROOT_DIR\include\QtCore;$Env:QT_ROOT_DIR\include\QtWebEngine;$Env:QT_ROOT_DIR\include\QtWebEngineWidgets;$Env:QT_ROOT_DIR\include\QtWebEngineCore;$Env:QT_ROOT_DIR\include\QtWebChannel;$Env:QT_ROOT_DIR\include;$Env:IncludePath"
$Env:LINK="/LIBPATH:$Env:QT_ROOT_DIR\lib"
MSBuild /Verbosity:Quiet /p:Configuration=Release`;Platform=${{ matrix.arch }} MediaConch\Project\MSVC2022\MediaConch.sln