summaryrefslogtreecommitdiff
path: root/ci/container_builds.yml
blob: c5635be481b0b82c024903afb66b07803c7e1bd0 (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
# This file defines the container images that at-spi2-core uses for its CI.
#
# Container images are built using the Freedesktop CI Templates infrastructure:
# https://gitlab.freedesktop.org/freedesktop/ci-templates/

# The SHAs here correspond to commits in the freedesktop/ci-templates repository.
# It doesn't change often, but you can update to newer SHAs if there are important
# changes there.
include:
  - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/3e66ea37e5672bb8f48e3056ba92915b5fc5b888/templates/opensuse.yml"
  - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/3e66ea37e5672bb8f48e3056ba92915b5fc5b888/templates/fedora.yml"

variables:
  # When branching change the suffix to avoid conflicts with images
  # from the main branch
  BASE_TAG: "2022-07-06.1-main"
  RUST_STABLE: "1.58.1"

.container.opensuse@x86_64:
  stage: "container-build"
  variables:
    FDO_DISTRIBUTION_TAG: "x86_64-${BASE_TAG}"
    FDO_DISTRIBUTION_VERSION: "tumbleweed"
    FDO_UPSTREAM_REPO: "gnome/at-spi2-core"
    FDO_DISTRIBUTION_PACKAGES: >-
      bzip2 clang clang-tools findutils gcc dbus-1 dbus-1-devel gettext git
      glib2-devel gobject-introspection-devel
      gsettings-desktop-schemas gtk-doc itstool libasan6 libxml2-devel
      libxkbcommon-devel libXi-devel libXtst-devel lcov meson ninja
      python310 python310-python-dbusmock python310-gobject tar wget
    FDO_DISTRIBUTION_EXEC: >-
      bash ci/install-rust.sh ${RUST_STABLE} x86_64-unknown-linux-gnu &&
      bash ci/install-grcov.sh

opensuse-container@x86_64:
  extends:
    - .fdo.container-build@opensuse@x86_64
    - .container.opensuse@x86_64
  stage: "container-build"

.container.fedora@x86_64:
  stage: "container-build"
  variables:
    FDO_DISTRIBUTION_TAG: "x86_64-${BASE_TAG}"
    FDO_DISTRIBUTION_VERSION: "35"
    FDO_UPSTREAM_REPO: "gnome/at-spi2-core"
    FDO_DISTRIBUTION_PACKAGES: >-
      clang clang-tools-extra findutils gcc dbus-daemon dbus-devel dbus-tools systemd-devel
      gettext git glib2-devel gobject-introspection-devel
      gsettings-desktop-schemas gtk-doc itstool libasan libxml2-devel
      libxkbcommon-devel libXi-devel libXtst-devel lcov meson procps python38

fedora-container@x86_64:
  extends:
    - .fdo.container-build@fedora
    - .container.fedora@x86_64
  stage: "container-build"