5
5
branches :
6
6
- master
7
7
paths-ignore :
8
- - ' README.md'
9
- - ' LICENSE'
8
+ - " README.md"
9
+ - " LICENSE"
10
10
11
11
pull_request :
12
12
paths-ignore :
13
- - ' README.md'
14
- - ' LICENSE'
13
+ - " README.md"
14
+ - " LICENSE"
15
15
16
16
env :
17
17
PRODUCT : flameshot
@@ -32,55 +32,15 @@ jobs:
32
32
fail-fast : false
33
33
matrix :
34
34
dist :
35
- - {
36
- name : debian-10,
37
- os : debian,
38
- symbol : buster,
39
- arch : amd64
40
- }
41
- - {
42
- name : debian-10,
43
- os : debian,
44
- symbol : buster,
45
- arch : arm64
46
- }
47
- - {
48
- name : debian-10,
49
- os : debian,
50
- symbol : buster,
51
- arch : armhf
52
- }
53
- - {
54
- name : debian-11,
55
- os : debian,
56
- symbol : bullseye,
57
- arch : amd64
58
- }
59
- - {
60
- name : debian-11,
61
- os : debian,
62
- symbol : bullseye,
63
- arch : arm64
64
- }
65
- - {
66
- name : debian-11,
67
- os : debian,
68
- symbol : bullseye,
69
- arch : armhf
70
- }
71
- - {
72
- name : ubuntu-20.04,
73
- os : ubuntu,
74
- symbol : focal,
75
- arch : amd64
76
- }
77
- - {
78
- name : ubuntu-22.04,
79
- os : ubuntu,
80
- symbol : jammy,
81
- arch : amd64
82
- }
83
-
35
+ - { name: debian-10, os: debian, symbol: buster, arch: amd64 }
36
+ - { name: debian-10, os: debian, symbol: buster, arch: arm64 }
37
+ - { name: debian-10, os: debian, symbol: buster, arch: armhf }
38
+ - { name: debian-11, os: debian, symbol: bullseye, arch: amd64 }
39
+ - { name: debian-11, os: debian, symbol: bullseye, arch: arm64 }
40
+ - { name: debian-11, os: debian, symbol: bullseye, arch: armhf }
41
+ - { name: ubuntu-20.04, os: ubuntu, symbol: focal, arch: amd64 }
42
+ - { name: ubuntu-22.04, os: ubuntu, symbol: jammy, arch: amd64 }
43
+
84
44
steps :
85
45
- name : Enable Docker Experimental Features
86
46
run : |
@@ -219,23 +179,13 @@ jobs:
219
179
fail-fast : false
220
180
matrix :
221
181
dist :
222
- - {
223
- name : fedora-35,
224
- os : fedora,
225
- symbol : 35,
226
- arch : x86_64
227
- }
228
- - {
229
- name : fedora-36,
230
- os : fedora,
231
- symbol : 36,
232
- arch : x86_64
233
- }
182
+ - { name: fedora-35, os: fedora, symbol: 35, arch: x86_64 }
183
+ - { name: fedora-36, os: fedora, symbol: 36, arch: x86_64 }
234
184
- {
235
185
name : opensuse-leap-15.2,
236
186
os : opensuse-leap,
237
187
symbol : 15.2,
238
- arch : x86_64
188
+ arch : x86_64,
239
189
}
240
190
steps :
241
191
- name : Checkout Source code
@@ -326,7 +276,7 @@ jobs:
326
276
path : |
327
277
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm
328
278
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm.sha256sum
329
- appimage-pack :
279
+ appimage-pack :
330
280
name : Build appimage on ${{ matrix.config.name }}
331
281
runs-on : ubuntu-22.04
332
282
strategy :
@@ -338,7 +288,7 @@ jobs:
338
288
os : ubuntu,
339
289
symbol : focal,
340
290
arch : amd64,
341
- image_repo : flameshotorg/ci-building-images
291
+ image_repo : flameshotorg/ci-building-images,
342
292
}
343
293
container :
344
294
image : ${{ matrix.config.image_repo }}:${{ matrix.config.os }}-${{ matrix.config.symbol }}
@@ -400,9 +350,9 @@ jobs:
400
350
jq
401
351
402
352
- name : Get go-appimage tool
403
- # Will not use linuxdeployqt anymore, because it suopprts currently still-supported mainstream distribution,
404
- # which is glibc 2.23. For more information, please see https://github.com/probonopd/linuxdeployqt/issues/340.
405
- # Will try new tool https://github.com/probonopd/go-appimage written in golang by probonopd.
353
+ # Will not use linuxdeployqt anymore, because it suopprts currently still-supported mainstream distribution,
354
+ # which is glibc 2.23. For more information, please see https://github.com/probonopd/linuxdeployqt/issues/340.
355
+ # Will try new tool https://github.com/probonopd/go-appimage written in golang by probonopd.
406
356
run : |
407
357
wget $(curl https://api.github.com/repos/probonopd/go-appimage/releases | jq -r '.[] | select(.tag_name == "continuous") | .assets[] | select((.name | endswith("x86_64.AppImage")) and (.name | contains("appimagetool"))) | .browser_download_url') -O appimagetool
408
358
@@ -420,7 +370,7 @@ jobs:
420
370
make -j$(nproc) DESTDIR=${APPIMAGE_DST_PATH} install
421
371
422
372
$GITHUB_WORKSPACE/appimagetool -s deploy "${APPIMAGE_DST_PATH}/usr/share/applications/org.flameshot.Flameshot.desktop"
423
-
373
+
424
374
mkdir -p ${APPIMAGE_DST_PATH}/usr/plugins/platforminputcontexts
425
375
cp \
426
376
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so \
@@ -440,7 +390,6 @@ jobs:
440
390
VERSION=${VERSION} $GITHUB_WORKSPACE/appimagetool "${APPIMAGE_DST_PATH}"
441
391
mv $GITHUB_WORKSPACE/Flameshot-${VERSION}-x86_64.AppImage $GITHUB_WORKSPACE/Flameshot-${VERSION}.x86_64.AppImage
442
392
443
-
444
393
- name : SHA256Sum of appimage package(daily build)
445
394
run : |
446
395
cd "$GITHUB_WORKSPACE/" || { >&2 echo "Cannot cd to '$GITHUB_WORKSPACE/'!"; exit 11 ; }
@@ -557,7 +506,7 @@ jobs:
557
506
- name : Packaging snap
558
507
uses : snapcore/action-build@v1
559
508
id : snapcraft
560
- with :
509
+ with :
561
510
snapcraft-args : --enable-experimental-extensions
562
511
- name : Rename snap name
563
512
shell : bash
0 commit comments