Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ABI compatibility checker #917

Draft
wants to merge 1 commit into
base: 0.27-maintenance
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,35 @@ OpenSUSE:
<<: *default_config
<<: *distro_build

ABI_compliance_check:
image: fedora:30
stage: deploy
variables:
# abi-dumper complains if we don't pass -Og
CXXFLAGS: "-Og -g3 -gstrict-dwarf"
CFLAGS: "-Og -g3 -gstrict-dwarf"
# enabling curl is broken on 0.27
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it broken when consuming it from a system-package? from conan? both? Would you mind to create a ticket about this? I could check this issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's broken when I checkout the tag directly, not from a system package and haven't tried conan.

CMAKE_FLAGS: "-DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON -DBUILD_WITH_CCACHE=ON -DEXIV2_ENABLE_CURL=OFF -DEXIV2_ENABLE_SSH=ON"
<<: *default_config
script:
- dnf -y install abi-compliance-checker abi-dumper git
- mkdir build-latest && pushd build-latest
- cmake ${CMAKE_FLAGS} ..
- make -j $(nproc)
- abi-dumper lib/libexiv2.so -o ../ABI-1.dump -lver latest
- popd
- git checkout -f 0.27
- mkdir build-0.27 && pushd build-0.27
- cmake ${CMAKE_FLAGS} ..
- make -j $(nproc)
- abi-dumper lib/libexiv2.so -o ../ABI-0.dump -lver 0.27.0
- popd
- abi-compliance-checker -l libexiv2 -old ABI-0.dump -new ABI-1.dump
artifacts:
when: always
paths:
- compat_reports/

Install:
image: fedora:latest
stage: deploy
Expand Down