mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
Enable the ABI check job to publish the updated ABI data file (GH-105103)
This commit is contained in:
parent
c39500db52
commit
26f396a55f
1 changed files with 14 additions and 1 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -89,15 +89,28 @@ jobs:
|
||||||
./configure --enable-shared
|
./configure --enable-shared
|
||||||
make -j4
|
make -j4
|
||||||
- name: Check for changes in the ABI
|
- name: Check for changes in the ABI
|
||||||
|
id: check
|
||||||
run: |
|
run: |
|
||||||
if ! make check-abidump; then
|
if ! make check-abidump; then
|
||||||
echo "Generated ABI file is not up to date."
|
echo "Generated ABI file is not up to date."
|
||||||
echo "Please, add the release manager of this branch as a reviewer of this PR."
|
echo "Please, add the release manager of this branch as a reviewer of this PR."
|
||||||
echo ""
|
echo ""
|
||||||
echo "To learn more about this check, please visit: https://devguide.python.org/setup/?highlight=abi#regenerate-the-abi-dump"
|
echo "The up to date ABI file should be attached to this build as an artifact."
|
||||||
|
echo ""
|
||||||
|
echo "To learn more about this check: https://devguide.python.org/setup/#regenerate-the-abi-dump"
|
||||||
echo ""
|
echo ""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
- name: Generate updated ABI files
|
||||||
|
if: ${{ failure() && steps.check.conclusion == 'failure' }}
|
||||||
|
run: |
|
||||||
|
make regen-abidump
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
name: Publish updated ABI files
|
||||||
|
if: ${{ failure() && steps.check.conclusion == 'failure' }}
|
||||||
|
with:
|
||||||
|
name: abi-data
|
||||||
|
path: ./Doc/data/*.abi
|
||||||
|
|
||||||
check_generated_files:
|
check_generated_files:
|
||||||
name: 'Check if generated files are up to date'
|
name: 'Check if generated files are up to date'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue