]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] Add an error message to the ABI-dump file check (#94131)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Wed, 22 Jun 2022 21:22:24 +0000 (22:22 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 21:22:24 +0000 (22:22 +0100)
.github/workflows/build.yml

index 61cbef982a9ef17c8aea50609f9926649cffb424..b98514aaf945221fed567d8fb252cb32a49e38bf 100644 (file)
@@ -73,7 +73,16 @@ jobs:
           ./configure --enable-shared
           make -j4
       - name: Check for changes in the ABI
-        run: make check-abidump
+        run: |
+          make check-abidump
+          if [ $? -neq 0 ] ; 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 ""
+            exit 1
+          fi
 
   check_generated_files:
     name: 'Check if generated files are up to date'