summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2023-05-30 19:33:42 (GMT)
committerGitHub <noreply@github.com>2023-05-30 19:33:42 (GMT)
commit26f396a55f8f208f229bdb700f1d7a17ca81493d (patch)
tree4076bc97661d68e9344efcbc9eac6b11c7bb3352 /.github/workflows/build.yml
parentc39500db5254c9efee9937f951f58d87ee14cf2f (diff)
downloadcpython-26f396a55f8f208f229bdb700f1d7a17ca81493d.zip
cpython-26f396a55f8f208f229bdb700f1d7a17ca81493d.tar.gz
cpython-26f396a55f8f208f229bdb700f1d7a17ca81493d.tar.bz2
Enable the ABI check job to publish the updated ABI data file (GH-105103)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 20df092..2abbca4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -89,15 +89,28 @@ jobs:
./configure --enable-shared
make -j4
- name: Check for changes in the ABI
+ id: check
run: |
if ! make check-abidump; then
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 ""
- 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 ""
exit 1
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:
name: 'Check if generated files are up to date'