include:
  - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/80f87b3058efb75a1faae11826211375fba77e7f/templates/opensuse.yml"

variables:
  # When branching change the suffix to avoid conflicts with images
  # from the main branch
  BASE_TAG: "2023-06-09.0-master"
  FDO_UPSTREAM_REPO: "gnome/cthulhu"

.cthulhu_opensuse_tumbleweed_x86_64:
  variables:
    FDO_DISTRIBUTION_VERSION: "tumbleweed"
    FDO_DISTRIBUTION_TAG: "x86_64-${BASE_TAG}"

opensuse-container@x86_64:
  extends:
    - .cthulhu_opensuse_tumbleweed_x86_64
    - .fdo.container-build@opensuse@x86_64
  stage: "container-build"
  variables:
    FDO_DISTRIBUTION_PACKAGES: >-
      autoconf
      automake
      dbus-1
      dbus-1-devel
      gcc
      gettext
      gettext-tools
      git
      glib2-devel
      gobject-introspection-devel
      gsettings-desktop-schemas
      gstreamer-devel
      itstool
      libtool
      libXi-devel
      libXtst-devel
      libxkbcommon-devel
      libxml2-devel
      libX11-devel
      make
      meson
      ninja
      python3
      python3-brlapi
      python3-louis      
      python3-pip
      python3-speechd
      python310-gobject-devel
      python310-simplejson
      xvfb-run
      yelp-devel
      yelp-tools
    FDO_DISTRIBUTION_EXEC: >-
      pip3 install ruff