Skip to content

Commit 045817f

Browse files
committed
Add CI step to check changes in the exported ABI
1 parent 2b5913b commit 045817f

File tree

3 files changed

+15701
-0
lines changed

3 files changed

+15701
-0
lines changed

.github/workflows/build.yml

+22
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ jobs:
4848
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
4949
fi
5050
51+
check_abi:
52+
name: 'Check if the ABI has changed'
53+
runs-on: ubuntu-latest
54+
needs: check_source
55+
if: needs.check_source.outputs.run_tests == 'true'
56+
steps:
57+
- uses: actions/checkout@v2
58+
- uses: actions/setup-python@v2
59+
- name: Install Dependencies
60+
run: |
61+
sudo ./.github/workflows/posix-deps-apt.sh
62+
sudo apt-get install -yq abigail-tools
63+
- name: Build CPython
64+
env:
65+
CFLAGS: -g3 -O0
66+
run: |
67+
# Build Python with the libpython dynamic library
68+
./configure --enable-shared
69+
make -j4
70+
- name: Check for changes in the ABI
71+
run: make check-abidump
72+
5173
check_generated_files:
5274
name: 'Check if generated files are up to date'
5375
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)