8000 [3.11] Add CI step to check changes in the exported ABI (#92442) · python/cpython@e89c01e · GitHub
[go: up one dir, main page]

Skip to content

Commit e89c01e

Browse files
authored
[3.11] Add CI step to check changes in the exported ABI (#92442)
1 parent 21282da commit e89c01e

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

0 commit comments

Comments
 (0)
0