3333 check_source :
3434 name : ' Check for source changes'
3535 runs-on : ubuntu-latest
36+ timeout-minutes : 10
3637 outputs :
3738 run_tests : ${{ steps.check.outputs.run_tests }}
3839 steps :
6364 check_generated_files :
6465 name : ' Check if generated files are up to date'
6566 runs-on : ubuntu-latest
67+ timeout-minutes : 60
6668 needs : check_source
6769 if : needs.check_source.outputs.run_tests == 'true'
6870 steps :
@@ -111,10 +113,14 @@ jobs:
111113 run : make smelly
112114 - name : Check limited ABI symbols
113115 run : make check-limited-abi
116+ - name : Check for unsupported C global variables
117+ if : github.event_name == 'pull_request' # $GITHUB_EVENT_NAME
118+ run : make check-c-globals
114119
115120 build_win32 :
116121 name : ' Windows (x86)'
117122 runs-on : windows-latest
123+ timeout-minutes : 60
118124 needs : check_source
119125 if : needs.check_source.outputs.run_tests == 'true'
120126 env :
@@ -123,7 +129,6 @@ jobs:
123129 - uses : actions/checkout@v3
124130 - name : Build CPython
125131 run : .\PCbuild\build.bat -e -d -p Win32
126- timeout-minutes : 30
127132 - name : Display build info
128133 run : .\python.bat -m test.pythoninfo
129134 - name : Tests
@@ -132,6 +137,7 @@ jobs:
132137 build_win_amd64 :
133138 name : ' Windows (x64)'
134139 runs-on : windows-latest
140+ timeout-minutes : 60
135141 needs : check_source
136142 if : needs.check_source.outputs.run_tests == 'true'
137143 env :
@@ -142,7 +148,6 @@ jobs:
142148 run : echo "::add-matcher::.github/problem-matchers/msvc.json"
143149 - name : Build CPython
144150 run : .\PCbuild\build.bat -e -d -p x64
145- timeout-minutes : 30
146151 - name : Display build info
147152 run : .\python.bat -m test.pythoninfo
148153 - name : Tests
@@ -151,18 +156,27 @@ jobs:
151156 build_macos :
152157 name : ' macOS'
153158 runs-on : macos-latest
159+ timeout-minutes : 60
154160 needs : check_source
155161 if : needs.check_source.outputs.run_tests == 'true'
156162 env :
163+ HOMEBREW_NO_ANALYTICS : 1
164+ HOMEBREW_NO_AUTO_UPDATE : 1
165+ HOMEBREW_NO_INSTALL_CLEANUP : 1
157166 PYTHONSTRICTEXTENSIONBUILD : 1
158167 steps :
159168 - uses : actions/checkout@v3
160- - name : Prepare homebrew environment variables
161- run : |
162- echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV
163- echo "PKG_CONFIG_PATH=$(brew --prefix [email protected] )/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV 169+ - name : Install Homebrew dependencies
170+ run :
brew install pkg-config [email protected] xz gdbm tcl-tk 164171 - name : Configure CPython
165- run : ./configure --with-pydebug --prefix=/opt/python-dev
172+ run : |
173+ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
174+ LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
175+ PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
176+ ./configure \
177+ --with-pydebug \
178+ --prefix=/opt/python-dev \
179+ --with-openssl="$(brew --prefix [email protected] )" 166180 - name : Build CPython
167181 run : make -j4
168182 - name : Display build info
@@ -173,6 +187,7 @@ jobs:
173187 build_ubuntu :
174188 name : ' Ubuntu'
175189 runs-on : ubuntu-20.04
190+ timeout-minutes : 60
176191 needs : check_source
177192 if : needs.check_source.outputs.run_tests == 'true'
178193 env :
@@ -230,6 +245,7 @@ jobs:
230245 build_ubuntu_ssltests :
231246 name : ' Ubuntu SSL tests with OpenSSL'
232247 runs-on : ubuntu-20.04
248+ timeout-minutes : 60
233249 needs : check_source
234250 if : needs.check_source.outputs.run_tests == 'true'
235251 strategy :
@@ -279,6 +295,7 @@ jobs:
279295 build_asan :
280296 name : ' Address sanitizer'
281297 runs-on : ubuntu-20.04
298+ timeout-minutes : 60
282299 needs : check_source
283300 if : needs.check_source.outputs.run_tests == 'true'
284301 env :
@@ -291,6 +308,10 @@ jobs:
291308 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
292309 - name : Install Dependencies
293310 run : sudo ./.github/workflows/posix-deps-apt.sh
311+ - name : Set up GCC-10 for ASAN
312+ uses : egor-tensin/setup-gcc@v1
313+ with :
314+ version : 10
294315 - name : Configure OpenSSL env vars
295316 run : |
296317 echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
0 commit comments