diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-05-08 04:32:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 04:32:17 +0100 |
commit | e89c01eac7731d7cb54d43252dbc3d3f3a040c53 (patch) | |
tree | 9a64d84428bf333987f9136115d58e8cc2052554 /.github | |
parent | 21282da0206e5927cff48e835a3d38b82e05dd08 (diff) | |
download | cpython-git-e89c01eac7731d7cb54d43252dbc3d3f3a040c53.tar.gz |
[3.11] Add CI step to check changes in the exported ABI (#92442)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e04633b711..8de17345df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 |