8000 Enable the ABI check job to publish the updated ABI data file (GH-105… · python/cpython@26f396a · GitHub
[go: up one dir, main page]

Skip to content

Commit 26f396a

Browse files
authored
Enable the ABI check job to publish the updated ABI data file (GH-105103)
1 parent c39500d commit 26f396a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,28 @@ jobs:
8989
./configure --enable-shared
9090
make -j4
9191
- name: Check for changes in the ABI
92+
id: check
9293
run: |
9394
if ! make check-abidump; then
9495
echo "Generated ABI file is not up to date."
9596
echo "Please, add the release manager of this branch as a reviewer of this PR."
9697
echo ""
97-
echo "To learn more about this check, please visit: https://devguide.python.org/setup/?highlight=abi#regenerate-the-abi-dump"
98+
echo "The up to date ABI file should be attached to this build as an artifact."
99+
echo ""
100+
echo "To learn more about this check: https://devguide.python.org/setup/#regenerate-the-abi-dump"
98101
echo ""
99102
exit 1
100103
fi
104+
- name: Generate updated ABI files
105+
if: ${{ failure() && steps.check.conclusion == 'failure' }}
106+
run: |
107+
make regen-abidump
108+
- uses: actions/upload-artifact@v3
109+
name: Publish updated ABI files
110+
if: ${{ failure() && steps.check.conclusion == 'failure' }}
111+
with:
112+
name: abi-data
113+
path: ./Doc/data/*.abi
101114

102115
check_generated_files:
103116
name: 'Check if generated files are up to date'

0 commit comments

Comments
 (0)
0