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
|
include:
- project: 'GNOME/citemplates'
file: 'flatpak/flatpak_ci_initiative.yml'
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
inputs:
dist-job-name: "flatpak"
tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}"
- project: 'Infrastructure/freedesktop-ci-templates'
file: 'templates/fedora.yml'
ref: 'b61a03cabbf308e81289f7aaaf0b5a80a34ffb99'
cache:
paths:
- _ccache/
# This workflow disables merge request pipelines. Use only branch pipelines.
# https://docs.gitlab.com/ee/ci/yaml/workflow.html
workflow:
rules:
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_BRANCH'
variables:
BUNDLE: 'epiphany-git.flatpak'
MANIFEST_PATH: 'org.gnome.Epiphany.json'
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
FLATPAK_MODULE: 'epiphany'
APP_ID: 'org.gnome.Epiphany.Devel'
FDO_UPSTREAM_REPO: GNOME/epiphany
TARBALL_ARTIFACT_PATH: ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
stages:
- prepare
- test
- deploy
# Use freedesktop-ci-templates for code style check.
# Everything else uses flatpak-ci-initiative
.fedora.container.common:
variables:
FDO_DISTRIBUTION_TAG: '2024-07-09.1'
FDO_DISTRIBUTION_VERSION: 'latest'
build.container.fedora@x86_64:
extends:
- '.fdo.container-build@fedora'
- '.fedora.container.common'
stage: 'prepare'
variables:
GIT_STRATEGY: none
FDO_EXPIRES_AFTER: 8w
FDO_DISTRIBUTION_PACKAGES: >-
colordiff
diffutils
uncrustify
check-code-style:
extends:
- '.fdo.distribution-image@fedora'
- '.fedora.container.common'
stage: 'test'
needs: [ 'build.container.fedora@x86_64' ]
interruptible: true
script:
- bash data/check-code-style
artifacts:
when: on_failure
rules:
- if: $CI_COMMIT_BRANCH !~ /gnome-\d\d+/
.flatpak rules:
rules:
- if: $CI_COMMIT_BRANCH =~ /gnome-\d\d+/
variables:
CONFIG_OPTS: '-Dprofile=Devel -Dunit_tests=enabled'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
CONFIG_OPTS: '-Dtech_preview=true -Dprofile=Devel -Dunit_tests=enabled'
- if: $CI_COMMIT_BRANCH !~ /gnome-\d\d+/ && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
variables:
CONFIG_OPTS: '-Dprofile=Devel -Dunit_tests=enabled --werror'
check-potfiles:
extends:
- '.fdo.distribution-image@fedora'
- '.fedora.container.common'
stage: 'test'
needs: [ 'build.container.fedora@x86_64' ]
interruptible: true
script:
- bash data/check-potfiles
artifacts:
when: on_failure
flatpak:
extends:
- '.flatpak'
- '.flatpak rules'
needs: []
flatpak aarch64:
extends:
- '.flatpak@aarch64'
- '.flatpak rules'
needs: []
scanbuild:
extends: '.flatpak'
needs: []
variables:
CONFIG_OPTS: '-Dprofile=Devel -Dunit_tests=enabled'
script:
- flatpak-builder --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}
- flatpak build flatpak_app bash -c "source /usr/lib/sdk/llvm18/enable.sh; meson setup --prefix=/app ${CONFIG_OPTS} _build; SCANBUILD=$(pwd)/.run-scan-build ninja -C _build scan-build"
artifacts:
when: on_failure
paths:
- _build/meson-logs/scanbuild
rules:
- if: $CI_COMMIT_BRANCH !~ /gnome-\d\d+/
nightly:
extends: '.publish_nightly'
stage: .post
needs: ['flatpak']
nightly aarch64:
extends: '.publish_nightly'
stage: .post
needs: ['flatpak aarch64']
canary:
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
stage: 'test'
interruptible: true
tags:
- flatpak
variables:
BUNDLE: 'epiphany-canary.flatpak'
script:
- python3 generate-canary-manifest.py
- flatpak-builder --user --disable-rofiles-fuse --repo=repo canary_flatpak_app org.gnome.Epiphany.Canary.json
- flatpak build-bundle repo --runtime-repo=${RUNTIME_REPO} ${BUNDLE} org.gnome.Epiphany.Canary
- tar cf canary-repo.tar repo/
- rm -rf canary-repo canary_flatpak_app org.gnome.Epiphany.Canary.json webkitgtk.zip
artifacts:
name: 'Canary Flatpak artifacts'
expose_as: 'Get Canary Flatpak bundle here'
when: 'always'
paths:
- "${BUNDLE}"
- "canary-repo.tar"
expire_in: 14 days
cache:
- key: "$CI_JOB_NAME"
paths:
- '.flatpak-builder/downloads'
- '.flatpak-builder/git'
- key: "$CI_JOB_NAME"
paths:
- '.flatpak-builder/cache'
- '.flatpak-builder/ccache'
except:
- gnome-*
canary nightly:
extends: '.publish_nightly'
stage: .post
dependencies: ['canary']
before_script:
- mv canary-repo.tar repo.tar
|