File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -164,13 +164,22 @@ jobs:
164
164
free-threading :
165
165
- false
166
166
- true
167
+ check-warnings :
168
+ - false
169
+ - true
167
170
exclude :
168
171
- os : ghcr.io/cirruslabs/macos-runner:sonoma
169
172
is-fork : true
170
173
- os : macos-14
171
174
is-fork : false
172
175
- os : macos-13
173
176
free-threading : true
177
+ - os : macos-13
178
+ check-warnings : true
179
+ - free-threading : true
180
+ check-warnings : true
181
+ - os : ghcr.io/cirruslabs/macos-runner:sonoma
182
+ check-warnings : true
174
183
uses : ./.github/workflows/reusable-macos.yml
175
184
with :
176
185
config_hash : ${{ needs.check_source.outputs.config_hash }}
Original file line number Diff line number Diff line change @@ -47,11 +47,16 @@ jobs:
47
47
${{ inputs.free-threading && '--disable-gil' || '' }} \
48
48
--prefix=/opt/python-dev \
49
49
--with-openssl="$(brew --prefix openssl@3.0)"
50
- - name : Build CPython
50
+ - name : Build CPython for Compiler Warning Check
51
+ if : ${{ inputs.check-warnings }}
51
52
run : set -o pipefail; make -j1 2>&1 | tee compiler_output_macos.txt
53
+ - name : Build CPython
54
+ if : ${{ !inputs.check-warnings }}
55
+ run : make -j4
52
56
- name : Display build info
53
57
run : make pythoninfo
54
58
- name : Check compiler warnings
59
+ if : ${{ inputs.check-warnings }}
55
60
run : >-
56
61
python3 Tools/build/check_warnings.py
57
62
--compiler-output-file-path=compiler_output_macos.txt
Original file line number Diff line number Diff line change @@ -73,14 +73,19 @@ jobs:
73
73
--enable-slower-safety
74
74
--with-openssl=$OPENSSL_DIR
75
75
${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
76
- - name : Build CPython out-of-tree
76
+ - name : Build CPython out-of-tree (for compiler warning check)
77
+ if : ${{ !inputs.free-threading}}
77
78
working-directory : ${{ env.CPYTHON_BUILDDIR }}
78
79
run : set -o pipefail; make -j4 2>&1 | tee compiler_output_ubuntu.txt
80
+ - name : Build CPython out-of-tree
81
+ if : ${{ inputs.free-threading }}
82
+ working-directory : ${{ env.CPYTHON_BUILDDIR }}
83
+ run : make -j4
79
84
- name : Display build info
80
85
working-directory : ${{ env.CPYTHON_BUILDDIR }}
81
86
run : make pythoninfo
82
87
- name : Check compiler warnings
83
- if : ${{ !fromJSON( inputs.free-threading) }}
88
+ if : ${{ !inputs.free-threading }}
84
89
run : >-
85
90
python Tools/build/check_warnings.py
86
91
--compiler-output-file-path=${{ env.CPYTHON_BUILDDIR }}/compiler_output_ubuntu.txt
You can’t perform that action at this time.
0 commit comments