summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-12-06 12:48:54 (GMT)
committerGitHub <noreply@github.com>2021-12-06 12:48:54 (GMT)
commitf147248795bf22be05bbc891053d60ef6a2f035d (patch)
tree0e8c6364bcf8d424c1336e56df16d1b3506b8663 /.github/workflows
parent7accb4fdb3dc1b4140089edee290998aff496fe2 (diff)
downloadcpython-f147248795bf22be05bbc891053d60ef6a2f035d.zip
cpython-f147248795bf22be05bbc891053d60ef6a2f035d.tar.gz
cpython-f147248795bf22be05bbc891053d60ef6a2f035d.tar.bz2
[3.9] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29938)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml21
1 files changed, 16 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bb56a42..295b24c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -83,6 +83,18 @@ jobs:
- uses: actions/setup-python@v2
- name: Install Dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
+ - name: Add ccache to PATH
+ run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
+ - name: Configure ccache action
+ uses: hendrikmuhs/ccache-action@v1
+ - name: Check Autoconf version 2.69 and aclocal 1.16.3
+ run: |
+ grep "Generated by GNU Autoconf 2.69" configure
+ grep "aclocal 1.16.3" aclocal.m4
+ grep -q "runstatedir" configure
+ grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
+ - name: Regenerate autoconf files
+ run: docker run --rm -v $(pwd):/src quay.io/tiran/cpython_autoconf:269
- name: Build CPython
run: |
./configure --with-pydebug
@@ -91,16 +103,15 @@ jobs:
run: |
changes=$(git status --porcelain)
# Check for changes in regenerated files
- if ! test -z "$changes"
- then
- echo "Generated files not up to date. Perhaps you forgot to run make regen-all or build.bat --regen ;)"
+ if test -n "$changes"; then
+ echo "Generated files not up to date."
+ echo "Perhaps you forgot to run make regen-all or build.bat --regen. ;)"
+ echo "configure files must be regenerated with a specific, unpatched version of autoconf."
echo "$changes"
exit 1
fi
- name: Check exported libpython symbols
run: make smelly
- - name: Check Autoconf version 2.69
- run: grep "Generated by GNU Autoconf 2.69" configure
build_win32:
name: 'Windows (x86)'