[go: up one dir, main page]

File: .gitlab-ci.yml

package info (click to toggle)
libdecor-0 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 492 kB
  • sloc: ansic: 8,377; cpp: 288; sh: 89; makefile: 23
file content (78 lines) | stat: -rw-r--r-- 2,223 bytes parent folder | download | duplicates (2)
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
include:
  - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/3d03cccd770c04e63b40325b42223495274d6a1d/templates/fedora.yml'

stages:
 - prepare
 - build

.libdecor.fedora:34@common:
  variables:
    FDO_DISTRIBUTION_VERSION: 34
    BASE_TAG: '2023-07-04.1'
    FDO_UPSTREAM_REPO: jadahl/libdecor
    FDO_DISTRIBUTION_PACKAGES: |
      pkgconfig(wayland-client) pkgconfig(dbus-1) pkgconfig(wayland-protocols)
      pkgconfig(cairo) pkgconfig(pangocairo)
      pkgconfig(wayland-cursor) pkgconfig(xkbcommon)
      pkgconfig(egl) pkgconfig(gl) pkgconfig(wayland-egl)
      pkgconfig(gtk+-3.0)
      meson
    FDO_DISTRIBUTION_EXEC: |
      dnf group install -y 'Development Tools' \
                           'C Development Tools and Libraries' &&
      dnf install -y https://kojipkgs.fedoraproject.org//packages/wayland-protocols/1.32/1.fc39/noarch/wayland-protocols-devel-1.32-1.fc39.noarch.rpm &&
      dnf clean all

default:
  # Cancel jobs if newer commits are pushed to the branch
  interruptible: true
  # Auto-retry jobs in case of infra failures
  retry:
    max: 1
    when:
      - 'runner_system_failure'
      - 'stuck_or_timeout_failure'
      - 'scheduler_failure'
      - 'api_failure'

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_PIPELINE_SOURCE == 'push'

.pipeline-guard: &pipeline-guard
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_TAG'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
    - when: 'manual'

.libdecor.fedora:34@x86_64:
  extends: .libdecor.fedora:34@common
  variables:
    FDO_DISTRIBUTION_TAG: "x86_64-${BASE_TAG}"

build-fedora-container@x86_64:
  extends:
    - .fdo.container-build@fedora@x86_64
    - .libdecor.fedora:34@x86_64
  stage: prepare
  variables:
    GIT_STRATEGY: none
  <<: *pipeline-guard

.build-libdecor:
  extends:
    - .fdo.distribution-image@fedora
  stage: build
  script:
    - meson . build -Dbuildtype=debugoptimized -Dwarning_level=2 --werror --prefix /usr
    - ninja -C build
    - ninja -C build install

build-libdecor@x86_64:
  extends:
    - .build-libdecor
    - .libdecor.fedora:34@x86_64
  needs:
    - build-fedora-container@x86_64