Skip to content

Commit 4e7d41f

Browse files
authored
[3.12] Enable the ABI check job to publish the updated ABI data file (GH-105088)
1 parent b45df73 commit 4e7d41f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

+13
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,28 @@ jobs:
100100
./configure --enable-shared
101101
make -j4
102102
- name: Check for changes in the ABI
103+
id: check
103104
run: |
104105
if ! make check-abidump; then
105106
echo "Generated ABI file is not up to date."
106107
echo "Please add the release manager of this branch as a reviewer of this PR."
107108
echo ""
109+
echo "The up to date ABI file should be attached to this build as an artifact."
110+
echo ""
108111
echo "To learn more about this check: https://devguide.python.org/setup/#regenerate-the-abi-dump"
109112
echo ""
110113
exit 1
111114
fi
115+
- name: Generate updated ABI files
116+
if: ${{ failure() && steps.check.conclusion == 'failure' }}
117+
run: |
118+
make regen-abidump
119+
- uses: actions/upload-artifact@v3
120+
name: Publish updated ABI files
121+
if: ${{ failure() && steps.check.conclusion == 'failure' }}
122+
with:
123+
name: abi-data
124+
path: ./Doc/data/*.abi
112125

113126
check_generated_files:
114127
name: 'Check if generated files are up to date'

0 commit comments

Comments
 (0)