blob: f22fd2246a25dc081555f7ea6ddac0650b833789 (
plain)
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
|
stages:
- build
- paks
# - deploy
.carch_aarch64: &carch_aarch64
variables:
CARCH: 'aarch64'
.carch_x86_64: &carch_x86_64
variables:
CARCH: 'x86_64'
.main_build_config: &main_build_config
stage: build
script:
- ./scripts/01_arch_build.sh
- ./scripts/02_configure_tarball.sh
artifacts:
name: "Librewolf-${CI_COMMIT_TAG}-${CARCH}"
paths:
- "librewolf*pkg.tar*"
- "LibreWolf.${CARCH}.tar.bz2"
only:
- tags
.flatpak_config: &flatpak_config
stage: paks
artifacts:
name: "Librewolf-${CI_COMMIT_TAG}-Flatpak-${CARCH}"
paths:
- "LibreWolf.${CARCH}.flatpak"
- "${CI_PROJECT_DIR}/librewolf-${CARCH}-flatpak-repo"
only:
- tags
script:
- ./flatpak/build_flatpak.sh "${CI_PROJECT_DIR}/LibreWolf.${CARCH}.tar.bz2" "${CI_PROJECT_DIR}/librewolf-${CARCH}-flatpak-repo" "${CI_PROJECT_DIR}/LibreWolf.${CARCH}.flatpak"
.appimage_config: &appimage_config
stage: paks
artifacts:
name: "Librewolf-${CI_COMMIT_TAG}-AppImage-${CARCH}"
paths:
- "LibreWolf.${CARCH}.AppImage"
only:
- tags
script:
- ./appimage/build_appimage.sh "${CI_PROJECT_DIR}/LibreWolf.${CARCH}.tar.bz2" "${CI_PROJECT_DIR}/LibreWolf.${CARCH}.AppImage"
build_x86_64:
image: archlinux/base
tags: [x86_64b]
<<: *carch_x86_64
<<: *main_build_config
build_aarch64:
image: registry.gitlab.com/ohfp/manjaro-arm-docker
tags: [aarch64b]
<<: *carch_aarch64
<<: *main_build_config
flatpak_x86_64:
image: ubuntu:18.04
tags: [flat_runner]
<<: *carch_x86_64
<<: *flatpak_config
flatpak_aarch64:
image: arm64v8/ubuntu:18.04
tags: [flat_runner_aarch64]
<<: *carch_aarch64
<<: *flatpak_config
appimage_x86_64:
image: ubuntu:18.04
tags: [x86_64b]
<<: *carch_x86_64
<<: *appimage_config
appimage_aarch64:
image: arm64v8/ubuntu:18.04
tags:
- aarch64b
- arm64 # can also be run on any other less powerful aarch64 runner
<<: *carch_aarch64
<<: *appimage_config
# Release to Gitlab:
# stage: deploy
# image: python:latest
# script:
# - pip3 install gitlab-release
# - tar czf librewolf-aarch64-flatpak-repo.tar.gz librewolf-aarch64-flatpak-repo
# - tar czf librewolf-x86_64-flatpak-repo.tar.gz librewolf-x86_64-flatpak-repo
# - "gitlab-release librewolf*.pkg.tar.* LibreWolf.*.AppImage librewolf-*-flatpak-repo.tar.gz LibreWolf.*.flatpak"
# only:
# - tags
|