-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
49 lines (45 loc) · 1.46 KB
/
.gitlab-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
stages:
- build
- deploy
variables:
BUILD_DIR: _build
CONFIG_CMD: meson --buildtype=debug build
BUILD_CMD: ninja -v -C $BUILD_DIR
INSTALL_CMD: ninja -v -C $BUILD_DIR install
APP_ID: com.raggesilver.Proton
BUNDLE: proton.flatpak
FLATPAK_MODULE: proton
GIT_SUBMODULE_STRATEGY: normal
MANIFEST_PATH: com.raggesilver.Proton.json
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
build:
stage: build
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.34'
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
- flatpak-builder --run app ${MANIFEST_PATH} meson --prefix=/app ${MESON_ARGS} _build
- flatpak-builder --run app ${MANIFEST_PATH} ninja -C _build install
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
- flatpak build-export repo app
- flatpak build-bundle repo ${BUNDLE} ${APP_ID}
artifacts:
paths:
- "${BUNDLE}"
expire_in: 5 days
cache:
key: "flatpak"
paths:
- .flatpak-builder/downloads/
- .flatpak-builder/git/
deploy:
stage: deploy
dependencies:
- build
script:
- echo "Generating Flatpak"
artifacts:
paths:
- "${BUNDLE}"
environment:
name: deploy/$CI_COMMIT_REF_NAME
url: https://gnome.com/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}