Skip to content

Commit

Permalink
[3.11] Add CI step to check changes in the exported ABI (python#92442)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored May 8, 2022
1 parent 21282da commit e89c01e
Show file tree
Hide file tree
Showing 3 changed files with 16,596 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,28 @@ jobs:
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qE '(ssl|hashlib|hmac|^.github)' && echo '::set-output name=run_ssl_tests::true' || true
fi
check_abi:
name: 'Check if the ABI has changed'
runs-on: ubuntu-20.04
needs: check_source
if: needs.check_source.outputs.run_tests == 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install Dependencies
run: |
sudo ./.github/workflows/posix-deps-apt.sh
sudo apt-get install -yq abigail-tools
- name: Build CPython
env:
CFLAGS: -g3 -O0
run: |
# Build Python with the libpython dynamic library
./configure --enable-shared
make -j4
- name: Check for changes in the ABI
run: make check-abidump

check_generated_files:
name: 'Check if generated files are up to date'
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit e89c01e

Please sign in to comment.