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,6 +156,7 @@ 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 :
@@ -162,13 +168,11 @@ jobs:
162168 - uses : actions/checkout@v3
163169 - name : Install Homebrew dependencies
164170 run :
brew install pkg-config [email protected] xz gdbm tcl-tk 165- - name : Prepare Homebrew environment variables
166- run : |
167- echo "CFLAGS=-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" >> $GITHUB_ENV
168- echo "LDFLAGS=-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" >> $GITHUB_ENV
169- echo "PKG_CONFIG_PATH=$(brew --prefix [email protected] )/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV 170171 - name : Configure CPython
171172 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" \
172176 ./configure \
173177 --with-pydebug \
174178 --prefix=/opt/python-dev \
@@ -183,6 +187,7 @@ jobs:
183187 build_ubuntu :
184188 name : ' Ubuntu'
185189 runs-on : ubuntu-20.04
190+ timeout-minutes : 60
186191 needs : check_source
187192 if : needs.check_source.outputs.run_tests == 'true'
188193 env :
@@ -240,6 +245,7 @@ jobs:
240245 build_ubuntu_ssltests :
241246 name : ' Ubuntu SSL tests with OpenSSL'
242247 runs-on : ubuntu-20.04
248+ timeout-minutes : 60
243249 needs : check_source
244250 if : needs.check_source.outputs.run_tests == 'true'
245251 strategy :
@@ -289,6 +295,7 @@ jobs:
289295 build_asan :
290296 name : ' Address sanitizer'
291297 runs-on : ubuntu-20.04
298+ timeout-minutes : 60
292299 needs : check_source
293300 if : needs.check_source.outputs.run_tests == 'true'
294301 env :
@@ -301,6 +308,10 @@ jobs:
301308 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
302309 - name : Install Dependencies
303310 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
304315 - name : Configure OpenSSL env vars
305316 run : |
306317 echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
0 commit comments