CI: clone the upstream repo for the abidiff job

The forked repo may not have the latest tags. And we only need to run
this on MRs, no point ABI-diffing on every push.
This commit is contained in:
Peter Hutterer 2023-05-19 14:20:03 +10:00
parent 6970a5153a
commit 82e8f20fff
2 changed files with 10 additions and 0 deletions

View file

@ -276,6 +276,7 @@ abicheck@fedora:38:
extends:
- .fedora-build@template
variables:
GIT_STRATEGY: none # We need the upstream repo instead
MESON_ARGS: '-Dwerror=true'
script:
- git clone --depth=1 https://gitlab.freedesktop.org/hadess/check-abi
@ -285,8 +286,12 @@ abicheck@fedora:38:
meson compile -C _build
meson install -C _build
popd
- git clone --depth=1 https://gitlab.freedesktop.org/$FDO_UPSTREAM_REPO
- cd libei
- git fetch --tags
- check-abi 0.99.1 HEAD
only:
- merge_requests
#################################################################

View file

@ -276,6 +276,7 @@ abicheck@{{distro.name}}:{{version}}:
extends:
- .{{distro.name}}-build@template
variables:
GIT_STRATEGY: none # We need the upstream repo instead
MESON_ARGS: '-Dwerror=true'
script:
- git clone --depth=1 https://gitlab.freedesktop.org/hadess/check-abi
@ -285,8 +286,12 @@ abicheck@{{distro.name}}:{{version}}:
meson compile -C _build
meson install -C _build
popd
- git clone --depth=1 https://gitlab.freedesktop.org/$FDO_UPSTREAM_REPO
- cd libei
- git fetch --tags
- check-abi {{last_abi_break}} HEAD
only:
- merge_requests
{% endfor %}