File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,8 @@ def set_cibuild_test():
389389 env_pass ('PYMUPDF_SETUP_PY_LIMITED_API' )
390390 CIBW_BUILD_old = env_extra .get ('CIBW_BUILD' )
391391 assert CIBW_BUILD_old is not None
392- env_set ('CIBW_BUILD' , 'cp39*' )
392+ cp = cps .split ()[0 ]
393+ env_set ('CIBW_BUILD' , cp )
393394 log (f'Building single wheel.' )
394395 run ( f'cibuildwheel{ platform_arg } ' , env_extra = env_extra )
395396
@@ -413,7 +414,16 @@ def set_cibuild_test():
413414 #
414415 env_set ('CIBW_REPAIR_WHEEL_COMMAND' , '' )
415416
416- log (f'Testing on all python versions using wheels in wheelhouse/.' )
417+ if platform .system () == 'Linux' and env_extra .get ('CIBW_ARCHS_LINUX' ) == 'aarch64' :
418+ log (f'Testing all Python versions on linux-aarch64 is too slow and is killed by github after 6h.' )
419+ log (f'Testing on restricted python versions using wheels in wheelhouse/.' )
420+ # Testing only on first and last python versions.
421+ cp1 = cps .split ()[0 ]
422+ cp2 = cps .split ()[- 1 ]
423+ cp = cp1 if cp1 == cp2 else f'{ cp1 } { cp2 } '
424+ env_set ('CIBW_BUILD' , cp )
425+ else :
426+ log (f'Testing on all python versions using wheels in wheelhouse/.' )
417427 run ( f'cibuildwheel{ platform_arg } ' , env_extra = env_extra )
418428
419429 elif inputs_flavours :
You can’t perform that action at this time.
0 commit comments