summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorNate Ohlson <nohlson@purdue.edu>2024-08-06 17:26:37 (GMT)
committerGitHub <noreply@github.com>2024-08-06 17:26:37 (GMT)
commit58be1c270f2275603e56127791fa6777476954ec (patch)
tree62f15aa9b739f33eb3b2b54433000f2fc4849670 /.github
parent4b66b6b7d6e65f9eb2d61435b9b37ffeb7bb00fb (diff)
downloadcpython-58be1c270f2275603e56127791fa6777476954ec.zip
cpython-58be1c270f2275603e56127791fa6777476954ec.tar.gz
cpython-58be1c270f2275603e56127791fa6777476954ec.tar.bz2
gh-112301: Add macOS warning tracking tooling (#122211)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/reusable-macos.yml4
-rw-r--r--.github/workflows/reusable-ubuntu.yml2
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/reusable-macos.yml b/.github/workflows/reusable-macos.yml
index 64ef2c9..d77723e 100644
--- a/.github/workflows/reusable-macos.yml
+++ b/.github/workflows/reusable-macos.yml
@@ -48,8 +48,10 @@ jobs:
--prefix=/opt/python-dev \
--with-openssl="$(brew --prefix openssl@3.0)"
- name: Build CPython
- run: make -j8
+ run: set -o pipefail; make -j8 2>&1 | tee compiler_output.txt
- name: Display build info
run: make pythoninfo
+ - name: Check compiler warnings
+ run: python3 Tools/build/check_warnings.py --compiler-output-file-path=compiler_output.txt --warning-ignore-file-path=Tools/build/.warningignore_macos --compiler-output-type=clang
- name: Tests
run: make test
diff --git a/.github/workflows/reusable-ubuntu.yml b/.github/workflows/reusable-ubuntu.yml
index 8dd5f55..92069fd 100644
--- a/.github/workflows/reusable-ubuntu.yml
+++ b/.github/workflows/reusable-ubuntu.yml
@@ -80,7 +80,7 @@ jobs:
working-directory: ${{ env.CPYTHON_BUILDDIR }}
run: make pythoninfo
- name: Check compiler warnings
- run: python Tools/build/check_warnings.py --compiler-output-file-path=${{ env.CPYTHON_BUILDDIR }}/compiler_output.txt --warning-ignore-file-path ${GITHUB_WORKSPACE}/Tools/build/.warningignore_ubuntu
+ run: python Tools/build/check_warnings.py --compiler-output-file-path=${{ env.CPYTHON_BUILDDIR }}/compiler_output.txt --warning-ignore-file-path ${GITHUB_WORKSPACE}/Tools/build/.warningignore_ubuntu --compiler-output-type=json
- name: Remount sources writable for tests
# some tests write to srcdir, lack of pyc files slows down testing
run: sudo mount $CPYTHON_RO_SRCDIR -oremount,rw