Skip to content

Commit f6a853e

Browse files
scripts/gh_release.py: restrict testing of linux-aarch64 because of github timeout.
Testing on linux aarch64 seems to have got a lot slower recently and gets killed by github after 6h.
1 parent 214616d commit f6a853e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/gh_release.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)