8000 Add macos warning checks to GitHub actions · python/cpython@144136e · GitHub
[go: up one dir, main page]

Skip to content

Commit 144136e

Browse files
committed
Add macos warning checks to GitHub actions
1 parent 7f1a238 commit 144136e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/reusable-macos.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
os: ${{fromJson(inputs.os-matrix)}}
29+
os:
30+
- "macos-10.15"
31+
- "macos-11"
3032
is-fork:
3133
- ${{ github.repository_owner != 'python' }}
3234
exclude:
3335
- os: "ghcr.io/cirruslabs/macos-runner:sonoma"
3436
is-fork: true
35-
- os: "macos-14"
37+
- os: "macos-10.15"
3638
is-fork: false
3739
runs-on: ${{ matrix.os }}
3840
steps:
@@ -58,8 +60,10 @@ jobs:
5860
--prefix=/opt/python-dev \
5961
--with-openssl="$(brew --prefix openssl@3.0)"
6062
- name: Build CPython
61-
run: make -j8
63+
run: make -j8 &> compiler_output.txt
6264
- name: Display build info
6365
run: make pythoninfo
66+
- name: Check compiler warnings
67+
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_macos
6468
- name: Tests
6569
run: make test

Tools/build/.warningignore_macos

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Files listed will be ignored by the compiler warning checker
2+
# for the macOS/build and test job.
3+
# Keep lines sorted lexicographically to help avoid merge conflicts.

0 commit comments

Comments
 (0)
0