CI: add an abidiff job

This commit is contained in:
Peter Hutterer 2023-05-18 17:13:34 +10:00
parent 27ff400bc2
commit 4184e37442
3 changed files with 39 additions and 4 deletions

View file

@ -38,7 +38,7 @@ variables:
# See the documentation here: #
# https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html #
###############################################################################
FEDORA_PACKAGES: 'git diffutils gcc gcc-c++ pkgconf-pkg-config systemd-devel libxkbcommon-devel libxml2 doxygen python3-attrs python3-pytest python3-dbusmock python3-jinja2 python3-pip hugo '
FEDORA_PACKAGES: 'git diffutils gcc gcc-c++ pkgconf-pkg-config systemd-devel libxkbcommon-devel libxml2 doxygen python3-attrs python3-pytest python3-dbusmock python3-jinja2 python3-pip hugo libabigail '
FEDORA_PIP_PACKAGES: 'meson ninja structlog strenum '
DEBIAN_PACKAGES: 'git gcc g++ pkg-config libsystemd-dev libxkbcommon-dev libxml2 doxygen python3-attr python3-pytest python3-dbusmock python3-jinja2 python3-pip '
DEBIAN_PIP_PACKAGES: 'meson ninja structlog strenum '
@ -48,8 +48,8 @@ variables:
# changing these will force rebuilding the associated image
# Note: these tags have no meaning and are not tied to a particular
# libinput version
FEDORA_TAG: '2023-05-18.2'
DEBIAN_TAG: '2023-05-18.2'
FEDORA_TAG: '2023-05-18.3'
DEBIAN_TAG: '2023-05-18.3'
FDO_UPSTREAM_REPO: libinput/libei
@ -272,6 +272,22 @@ werror@fedora:38:
MESON_ARGS: '-Dwerror=true'
allow_failure: true
abicheck@fedora:38:
extends:
- .fedora-build@template
variables:
MESON_ARGS: '-Dwerror=true'
script:
- git clone --depth=1 https://gitlab.freedesktop.org/hadess/check-abi
- |
pushd check-abi
meson _build
meson compile -C _build
meson install -C _build
popd
- git fetch --tags
- check-abi 0.99.1 HEAD
#################################################################
# #

View file

@ -272,6 +272,22 @@ werror@{{distro.name}}:{{version}}:
MESON_ARGS: '-Dwerror=true'
allow_failure: true
abicheck@{{distro.name}}:{{version}}:
extends:
- .{{distro.name}}-build@template
variables:
MESON_ARGS: '-Dwerror=true'
script:
- git clone --depth=1 https://gitlab.freedesktop.org/hadess/check-abi
- |
pushd check-abi
meson _build
meson compile -C _build
meson install -C _build
popd
- git fetch --tags
- check-abi {{last_abi_break}} HEAD
{% endfor %}
#################################################################

View file

@ -3,7 +3,9 @@
#
# We're happy to rebuild all containers when one changes.
.default_tag: &default_tag '2023-05-18.2'
.default_tag: &default_tag '2023-05-18.3'
last_abi_break: 0.99.1
distributions:
- name: fedora
@ -27,6 +29,7 @@ distributions:
- python3-jinja2
- python3-pip
- hugo # for documentation only
- libabigail # for abidiff only
pips:
- meson
- ninja