forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
313 lines (307 loc) · 11.2 KB
/
manualrun.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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
name: Full Manual Check
# keep in sync with ci.yml
on:
workflow_dispatch:
jobs:
Linux:
name: Linux.${{ matrix.os.code }}.${{ matrix.compiler.compiler }}.${{ matrix.target }}.${{ matrix.btype }}
runs-on: ${{ matrix.os.label }}
strategy:
fail-fast: true
matrix:
os:
- { label: ubuntu-20.04, code: focal }
- { label: ubuntu-18.04, code: bionic }
compiler:
- { compiler: GNU8, CC: gcc-8, CXX: g++-8, packages: gcc-8 g++-8 }
- { compiler: GNU9, CC: gcc-9, CXX: g++-9, packages: gcc-9 g++-9 }
- { compiler: GNU10, CC: gcc-10, CXX: g++-10, packages: gcc-10 g++-10 }
- { compiler: LLVM9, CC: clang-9, CXX: clang++-9, packages: clang-9 libomp-9-dev libclang-common-9-dev llvm-9-dev clang++-9 libc++-9-dev lld-9}
- { compiler: LLVM10, CC: clang-10, CXX: clang++-10, packages: clang-10 libomp-10-dev libclang-common-10-dev llvm-10-dev clang++-10 libc++-10-dev lld-10}
#- { compiler: LLVM11, CC: clang-11, CXX: clang++-11, packages: clang-11 libomp-11-dev libclang-common-11-dev llvm-11-dev clang++-11 libc++-11-dev lld-11}
btype:
- RelWithDebInfo
- Release
target:
- build
- nofeatures
include:
- os: { label: ubuntu-latest, code: latest }
btype: Debug
compiler: { compiler: GNU9, CC: gcc-9, CXX: g++-9, packages: gcc-9 g++-9 }
target: skiptest
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
SRC_DIR: ${{ github.workspace }}/src
BUILD_DIR: ${{ github.workspace }}/build
INSTALL_PREFIX: ${{ github.workspace }}/install
CMAKE_BUILD_TYPE: ${{ matrix.btype }}
GENERATOR: Ninja
TARGET: ${{ matrix.target }}
DARKTABLE_CLI: ${{ github.workspace }}/install/bin/darktable-cli
steps:
- name: Install compiler ${{ matrix.compiler.compiler }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo add-apt-repository -y universe
sudo add-apt-repository -y multiverse
sudo apt-get update
sudo apt-get -y install \
${{ matrix.compiler.packages }}
- name: Install Base Dependencies
run: |
sudo apt-get -y install \
build-essential \
appstream-util \
desktop-file-utils \
gettext \
git \
gdb \
intltool \
libatk1.0-dev \
libcairo2-dev \
libcolord-dev \
libcolord-gtk-dev \
libcmocka-dev \
libcups2-dev \
libcurl4-gnutls-dev \
libexiv2-dev \
libflickcurl-dev \
libgdk-pixbuf2.0-dev \
libglib2.0-dev \
libgphoto2-dev \
libgraphicsmagick1-dev \
libgtk-3-dev \
libjpeg-dev \
libjson-glib-dev \
liblcms2-dev \
liblensfun-dev \
liblua5.2-dev \
liblua5.3-dev \
libopenexr-dev \
libopenjp2-7-dev \
libosmgpsmap-1.0-dev \
libpango1.0-dev \
libpng-dev \
libpugixml-dev \
librsvg2-dev \
libsaxon-java \
libsecret-1-dev \
libsoup2.4-dev \
libsqlite3-dev \
libtiff5-dev \
libwebp-dev \
libx11-dev \
libxml2-dev \
libxml2-utils \
ninja-build \
perl \
po4a \
python3-jsonschema \
xsltproc \
zlib1g-dev;
- uses: actions/checkout@v2
with:
submodules: true
path: src
- name: Build and Install
run: |
cmake -E make_directory "${BUILD_DIR}";
cmake -E make_directory "${INSTALL_PREFIX}";
./src/.ci/ci-script.sh;
- name: Check if it runs
run: |
${INSTALL_PREFIX}/bin/darktable --version || true
${INSTALL_PREFIX}/bin/darktable-cli \
--width 2048 --height 2048 \
--hq true --apply-custom-presets false \
"${SRC_DIR}/src/tests/integration/images/mire1.cr2" \
"${SRC_DIR}/src/tests/integration/0000-nop/nop.xmp" \
output.png \
--core --disable-opencl --conf host_memory_limit=8192 \
--conf worker_threads=4 -t 4 \
--conf plugins/lighttable/export/force_lcms2=FALSE \
--conf plugins/lighttable/export/iccintent=0
- name: Run Integration test suite
#integration test can get "stuck" plus there are couple of errors here, so it needs to be addressed first
#if: ${{ false }}
run: |
cd "${SRC_DIR}/src/tests/integration/"
./run.sh --no-opencl --no-deltae --fast-fail
Win64:
name: Win64.${{ matrix.compiler.compiler }}.${{ matrix.target }}.${{ matrix.btype }}
needs: Linux
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
btype:
- RelWithDebInfo
compiler:
- { compiler: GNU, CC: gcc, CXX: g++ }
- { compiler: LLVM, CC: clang, CXX: clang++ }
target:
- skiptest
- nofeatures
include:
# Uncomment if PR needs to generate windows package for testing.
- btype: Release
compiler: { compiler: LLVM, CC: clang, CXX: clang++ }
eco: -DBINARY_PACKAGE_BUILD=ON
target: skiptest
- btype: Debug
compiler: { compiler: GNU, CC: gcc, CXX: g++ }
target: skiptest
defaults:
run:
shell: msys2 {0}
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
SRC_DIR: ${{ github.workspace }}/src
BUILD_DIR: ${{ github.workspace }}/build
INSTALL_PREFIX: ${{ github.workspace }}/install
ECO: ${{ matrix.eco }}
CMAKE_BUILD_TYPE: ${{ matrix.btype }}
GENERATOR: 'MSYS Makefiles'
TARGET: ${{ matrix.target }}
# todo: use linker which supports --wrap, ld.bfd and ld.gold support it
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
pacman-mirrors
bash
curl
git
base-devel
intltool
mingw-w64-x86_64-gdb
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-gcc
mingw-w64-x86_64-clang
mingw-w64-x86_64-openmp
mingw-w64-x86_64-cmake
mingw-w64-x86_64-cmocka
mingw-w64-x86_64-ninja
mingw-w64-x86_64-libxml2
mingw-w64-x86_64-pugixml
mingw-w64-x86_64-libjpeg-turbo
mingw-w64-x86_64-zlib
mingw-w64-x86_64-exiv2
mingw-w64-x86_64-lcms2
mingw-w64-x86_64-lensfun
mingw-w64-x86_64-dbus-glib
mingw-w64-x86_64-openexr
mingw-w64-x86_64-sqlite3
mingw-w64-x86_64-libxslt
mingw-w64-x86_64-libsoup
mingw-w64-x86_64-libavif
mingw-w64-x86_64-libwebp
mingw-w64-x86_64-libsecret
mingw-w64-x86_64-lua
mingw-w64-x86_64-graphicsmagick
mingw-w64-x86_64-openjpeg2
mingw-w64-x86_64-gtk3
mingw-w64-x86_64-pugixml
mingw-w64-x86_64-libexif
mingw-w64-x86_64-osm-gps-map
mingw-w64-x86_64-libgphoto2
mingw-w64-x86_64-drmingw
mingw-w64-x86_64-gettext
mingw-w64-x86_64-python3
mingw-w64-x86_64-iso-codes
mingw-w64-x86_64-python3-jsonschema
mingw-w64-x86_64-python3-setuptools
mingw-w64-x86_64-gmic
mingw-w64-x86_64-nsis
update: true
- uses: actions/checkout@v2
with:
submodules: true
path: src
- name: Build and Install
run: |
cmake -E make_directory "${BUILD_DIR}"
cmake -E make_directory "${INSTALL_PREFIX}"
$(cygpath ${SRC_DIR})/.ci/ci-script.sh
- name: Check if it runs
run: |
$(cygpath ${INSTALL_PREFIX})/bin/darktable.exe --version || true
$(cygpath ${INSTALL_PREFIX})/bin/darktable-cli.exe \
--width 2048 --height 2048 \
--hq true --apply-custom-presets false \
$(cygpath ${SRC_DIR})/src/tests/integration/images/mire1.cr2 \
$(cygpath ${SRC_DIR})/src/tests/integration/0000-nop/nop.xmp \
output.png \
--core --disable-opencl --conf host_memory_limit=8192 \
--conf worker_threads=4 -t 4 \
--conf plugins/lighttable/export/force_lcms2=FALSE \
--conf plugins/lighttable/export/iccintent=0
- name: Package
if: ${{ success() && matrix.btype == 'Release' && matrix.target == 'skiptest' }}
run: |
lensfun-update-data
cd "${BUILD_DIR}"
cmake --build "${BUILD_DIR}" --target package
- name: Package upload
if: ${{ success() && matrix.btype == 'Release' && matrix.target == 'skiptest' }}
uses: 'actions/upload-artifact@v2'
with:
name: Win64.${{ matrix.compiler.compiler }}.${{ matrix.btype}}.${{ github.sha }}
path: ${{ env.BUILD_DIR }}/darktable-*.exe
retention-days: 1
macOS:
name: macOS.${{ matrix.compiler.compiler }}.${{ matrix.target }}
needs: Linux
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
compiler:
- { compiler: XCode, CC: cc, CXX: c++ }
btype: [ RelWithDebInfo ]
target:
- skiptest
- nofeatures
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
SRC_DIR: ${{ github.workspace }}/src
BUILD_DIR: ${{ github.workspace }}/build
INSTALL_PREFIX: ${{ github.workspace }}/install
CMAKE_BUILD_TYPE: ${{ matrix.btype }}
GENERATOR: Ninja
TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
path: src
- name: Install Base Dependencies
run: |
brew update > /dev/null || true
brew tap Homebrew/bundle
cd src/.ci
brew bundle --verbose
- name: Build and Install
# todo: use linker which supports --wrap, ld.bfd and ld.gold support it
run: |
cmake -E make_directory "${BUILD_DIR}";
cmake -E make_directory "${INSTALL_PREFIX}";
./src/.ci/ci-script.sh;
- name: Check if it runs
run: |
${INSTALL_PREFIX}/bin/darktable --version || true
${INSTALL_PREFIX}/bin/darktable-cli \
--width 2048 --height 2048 \
--hq true --apply-custom-presets false \
"${SRC_DIR}/src/tests/integration/images/mire1.cr2" \
"${SRC_DIR}/src/tests/integration/0000-nop/nop.xmp" \
output.png \
--core --disable-opencl --conf host_memory_limit=8192 \
--conf worker_threads=4 -t 4 \
--conf plugins/lighttable/export/force_lcms2=FALSE \
--conf plugins/lighttable/export/iccintent=0