image: fedora:rawhide

variables:
  DEPENDENCIES:
    gcc
    meson
    git
    glibc-devel
    glib-devel
    gtk-doc
    gobject-introspection-devel
    libcanberra-devel
    vala
  DEPENDENCIES_ABI_CHECK:
    automake
    autoconf
    autoconf-archive
    libabigail
    libtool
  LAST_ABI_BREAK: "a86946b494aa32782b3f6334344d07b5c11d5219"

build_stable:
  before_script:
    - dnf update -y --nogpgcheck
    - dnf install -y --nogpgcheck $DEPENDENCIES
  script:
    - meson . _build --prefix=/usr -Dgtk_doc=true -Dintrospection=true -Denable_vala=true
    - ninja -C _build
    - ninja -C _build install
    - ninja -C _build dist
    # Check on ABI
    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
    - dnf install -y $DEPENDENCIES_ABI_CHECK
    - check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)

image: fedora:34

variables:
  DEPENDENCIES:
    gcc
    meson
    git
    glibc-devel
    glib-devel
    gtk-doc
    gobject-introspection-devel
    libcanberra-devel
    vala
  DEPENDENCIES_ABI_CHECK:
    automake
    autoconf
    autoconf-archive
    libabigail
    libtool
  LAST_ABI_BREAK: "a86946b494aa32782b3f6334344d07b5c11d5219"

build_stable:
  before_script:
    - dnf update -y --nogpgcheck
    - dnf install -y --nogpgcheck $DEPENDENCIES
  script:
    - meson . _build --prefix=/usr -Dgtk_doc=true -Dintrospection=true -Denable_vala=true
    - ninja -C _build
    - ninja -C _build install
    - ninja -C _build dist
    # Check on ABI
    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
    - dnf install -y $DEPENDENCIES_ABI_CHECK
    - check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)

Use Fedora 34 until rawhide is back working
ci: Use Fedora 34 until rawhide is back working
