Skip to content

Commit 649ab7f

Browse files
committed
Add CI step to check changes in the exported ABI
1 parent 6fbb56d commit 649ab7f

File tree

3 files changed

+16596
-0
lines changed

3 files changed

+16596
-0
lines changed

.github/workflows/build.yml

+22
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,28 @@ jobs:
5454
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qE '(ssl|hashlib|hmac|^.github)' && echo '::set-output name=run_ssl_tests::true' || true
5555
fi
5656
57+
check_abi:
58+
name: 'Check if the ABI has changed'
59+
runs-on: ubuntu-20.04
60+
needs: check_source
61+
if: needs.check_source.outputs.run_tests == 'true'
62+
steps:
63+
- uses: actions/checkout@v2
64+
- uses: actions/setup-python@v2
65+
- name: Install Dependencies
66+
run: |
67+
sudo ./.github/workflows/posix-deps-apt.sh
68+
sudo apt-get install -yq abigail-tools
69+
- name: Build CPython
70+
env:
71+
CFLAGS: -g3 -O0
72+
run: |
73+
# Build Python with the libpython dynamic library
74+
./configure --enable-shared
75+
make -j4
76+
- name: Check for changes in the ABI
77+
run: make check-abidump
78+
5779
check_generated_files:
5880
name: 'Check if generated files are up to date'
5981
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)