From ed5722918163878b059ec1cacfcb7dfa144b01ce Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 13 Oct 2025 13:26:35 +0800 Subject: [PATCH 01/14] test(workflows/build): enable cibuildwheel test for iOS simulator and Android --- .github/workflows/build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5f11d34..6ca3db6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -239,8 +239,6 @@ jobs: echo "CIBW_BUILD=${PYTHON_TAG}-*" | tee -a "${GITHUB_ENV}" if [[ "${{ matrix.target.archs }}" == *arm*v8a* ]]; then echo "CIBW_PLATFORM=android" | tee -a "${GITHUB_ENV}" - # Skip testing on Android - echo "CIBW_TEST_SKIP=*" | tee -a "${GITHUB_ENV}" elif [[ "${{ matrix.target.archs }}" == *iphone* ]]; then echo "CIBW_PLATFORM=ios" | tee -a "${GITHUB_ENV}" if [[ "${{ matrix.target.archs }}" == *simulator* ]]; then @@ -249,8 +247,6 @@ jobs: xcrun simctl list devices >/dev/null || true xcodebuild -downloadPlatform iOS || true xcrun simctl list devices available || true - # Skip testing in iOS simulators - echo "CIBW_TEST_SKIP=*" | tee -a "${GITHUB_ENV}" fi elif [[ "${{ matrix.target.archs }}" == wasm* ]]; then echo "CIBW_PLATFORM=pyodide" | tee -a "${GITHUB_ENV}" From 5961b7f93902dcc3e1ccd762a70fe70ed09f2ff8 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 13 Oct 2025 15:54:21 +0800 Subject: [PATCH 02/14] chore(workflows/build): use macos-26 --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ca3db6d..78799d40 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -151,19 +151,19 @@ jobs: include: # iOS - python-version: "3.13" - target: { runner: macos-latest, archs: "arm64_iphoneos" } + target: { runner: macos-26, archs: "arm64_iphoneos" } - python-version: "3.14" - target: { runner: macos-latest, archs: "arm64_iphoneos" } + target: { runner: macos-26, archs: "arm64_iphoneos" } # iOS Simulator - python-version: "3.13" - target: { runner: macos-latest, archs: "arm64_iphonesimulator" } + target: { runner: macos-26, archs: "arm64_iphonesimulator" } - python-version: "3.14" - target: { runner: macos-latest, archs: "arm64_iphonesimulator" } + target: { runner: macos-26, archs: "arm64_iphonesimulator" } # Android - python-version: "3.13" - target: { runner: macos-latest, archs: "arm64_v8a" } + target: { runner: macos-26, archs: "arm64_v8a" } - python-version: "3.14" - target: { runner: macos-latest, archs: "arm64_v8a" } + target: { runner: macos-26, archs: "arm64_v8a" } # Pyodide - python-version: "3.12" target: { runner: ubuntu-latest, archs: "wasm32" } From 0b69f37373330666c9704a960ccddd388a5ba1d7 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 17 Oct 2025 10:08:25 +0800 Subject: [PATCH 03/14] chore(workflows/build): explicitly set CIBW platform --- .github/workflows/build.yml | 81 +++++++++++++++++++++++-------------- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78799d40..dce7f2dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,16 +112,16 @@ jobs: matrix: # Reference: https://cibuildwheel.pypa.io target: - - { runner: ubuntu-latest, archs: "auto64" } - - { runner: ubuntu-latest, archs: "auto32" } - - { runner: ubuntu-24.04-arm, archs: "aarch64" } - - { runner: ubuntu-latest, archs: "ppc64le" } - - { runner: ubuntu-latest, archs: "s390x" } - - { runner: ubuntu-latest, archs: "riscv64" } - - { runner: macos-latest, archs: "auto64" } - - { runner: windows-latest, archs: "auto64" } - - { runner: windows-latest, archs: "auto32" } - - { runner: windows-11-arm, archs: "ARM64" } + - { runner: ubuntu-latest, platform: linux, archs: "auto64" } + - { runner: ubuntu-latest, platform: linux, archs: "auto32" } + - { runner: ubuntu-24.04-arm, platform: linux, archs: "aarch64" } + - { runner: ubuntu-latest, platform: linux, archs: "ppc64le" } + - { runner: ubuntu-latest, platform: linux, archs: "s390x" } + - { runner: ubuntu-latest, platform: linux, archs: "riscv64" } + - { runner: macos-latest, platform: macos, archs: "auto64" } + - { runner: windows-latest, platform: windows, archs: "auto64" } + - { runner: windows-latest, platform: windows, archs: "auto32" } + - { runner: windows-11-arm, platform: windows, archs: "ARM64" } python-version: - "3.9" - "3.10" @@ -151,24 +151,48 @@ jobs: include: # iOS - python-version: "3.13" - target: { runner: macos-26, archs: "arm64_iphoneos" } + target: + runner: macos-26 + platform: ios + archs: "arm64_iphoneos" - python-version: "3.14" - target: { runner: macos-26, archs: "arm64_iphoneos" } + target: + runner: macos-26 + platform: ios + archs: "arm64_iphoneos" # iOS Simulator - python-version: "3.13" - target: { runner: macos-26, archs: "arm64_iphonesimulator" } + target: + runner: macos-26 + platform: ios + archs: "arm64_iphonesimulator" - python-version: "3.14" - target: { runner: macos-26, archs: "arm64_iphonesimulator" } + target: + runner: macos-26 + platform: ios + archs: "arm64_iphonesimulator" # Android - python-version: "3.13" - target: { runner: macos-26, archs: "arm64_v8a" } + target: + runner: macos-26 + platform: android + archs: "arm64_v8a" - python-version: "3.14" - target: { runner: macos-26, archs: "arm64_v8a" } + target: + runner: macos-26 + platform: android + archs: "arm64_v8a" # Pyodide - python-version: "3.12" - target: { runner: ubuntu-latest, archs: "wasm32" } + target: + runner: ubuntu-latest + platform: pyodide + archs: "wasm32" - python-version: "3.13" - target: { runner: ubuntu-latest, archs: "wasm32" } + target: + runner: ubuntu-latest + platform: pyodide + archs: "wasm32" fail-fast: false timeout-minutes: 180 steps: @@ -237,19 +261,13 @@ jobs: fi echo "PYTHON_TAG=${PYTHON_TAG}" | tee -a "${GITHUB_ENV}" echo "CIBW_BUILD=${PYTHON_TAG}-*" | tee -a "${GITHUB_ENV}" - if [[ "${{ matrix.target.archs }}" == *arm*v8a* ]]; then - echo "CIBW_PLATFORM=android" | tee -a "${GITHUB_ENV}" - elif [[ "${{ matrix.target.archs }}" == *iphone* ]]; then - echo "CIBW_PLATFORM=ios" | tee -a "${GITHUB_ENV}" - if [[ "${{ matrix.target.archs }}" == *simulator* ]]; then - xcrun simctl shutdown all || true - xcrun simctl delete unavailable || true - xcrun simctl list devices >/dev/null || true - xcodebuild -downloadPlatform iOS || true - xcrun simctl list devices available || true - fi - elif [[ "${{ matrix.target.archs }}" == wasm* ]]; then - echo "CIBW_PLATFORM=pyodide" | tee -a "${GITHUB_ENV}" + if [[ "${{ matrix.target.platform }}" == 'ios' && + "${{ matrix.target.archs }}" == *simulator* ]]; then + xcrun simctl shutdown all || true + xcrun simctl delete unavailable || true + xcrun simctl list devices >/dev/null || true + xcodebuild -downloadPlatform iOS || true + xcrun simctl list devices available || true fi - name: Set up QEMU @@ -262,6 +280,7 @@ jobs: uses: pypa/cibuildwheel@v3.2 env: CIBW_BUILD: ${{ env.CIBW_BUILD }} + CIBW_PLATFORM: ${{ matrix.target.platform }} CIBW_ARCHS: ${{ matrix.target.archs }} CIBW_ARCHS_MACOS: ${{ matrix.target.archs }} universal2 CIBW_ENABLE: pypy cpython-freethreading${{ env.ALLOW_PRERELEASES == 'true' && ' cpython-prerelease' || '' }} From d726ab6d4c159128d382d8bbade782c13ec9e2d3 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 17 Oct 2025 10:10:41 +0800 Subject: [PATCH 04/14] chore(workflows/build): enable x86_64 wheels for Android --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dce7f2dd..395228b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -177,11 +177,21 @@ jobs: runner: macos-26 platform: android archs: "arm64_v8a" + - python-version: "3.13" + target: + runner: ubuntu-latest + platform: android + archs: "x86_64" - python-version: "3.14" target: runner: macos-26 platform: android archs: "arm64_v8a" + - python-version: "3.14" + target: + runner: ubuntu-latest + platform: android + archs: "x86_64" # Pyodide - python-version: "3.12" target: From cb662a8db934befb53cabe8309e1eadd1032c4c6 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 17 Oct 2025 11:33:37 +0800 Subject: [PATCH 05/14] fix: fix Android test for subprocessing --- .github/workflows/build.yml | 20 ++++++++++---------- tests/helpers.py | 6 ++++++ tests/test_ops.py | 2 ++ tests/test_treespec.py | 3 +++ 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 395228b2..d4a3043c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -152,41 +152,41 @@ jobs: # iOS - python-version: "3.13" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphoneos" - python-version: "3.14" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphoneos" # iOS Simulator - python-version: "3.13" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphonesimulator" - python-version: "3.14" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphonesimulator" # Android - python-version: "3.13" target: - runner: macos-26 + runner: ubuntu-latest platform: android archs: "arm64_v8a" - - python-version: "3.13" + - python-version: "3.14" target: runner: ubuntu-latest platform: android - archs: "x86_64" - - python-version: "3.14" + archs: "arm64_v8a" + - python-version: "3.13" target: - runner: macos-26 + runner: ubuntu-latest platform: android - archs: "arm64_v8a" + archs: "x86_64" - python-version: "3.14" target: runner: ubuntu-latest diff --git a/tests/helpers.py b/tests/helpers.py index 90d63702..bba4f3c0 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -68,6 +68,12 @@ reason='iOS does not support subprocesses', ) +ANDROID = sys.platform.startswith('android') +skipif_android = pytest.mark.skipif( + ANDROID, + reason='Android testbed returns wrong `sys.executable` which breaks subprocesses', +) + WASM = sys.platform.startswith(('emscripten', 'wasi')) skipif_wasm = pytest.mark.skipif( WASM, diff --git a/tests/test_ops.py b/tests/test_ops.py index c46e8033..78c29e41 100644 --- a/tests/test_ops.py +++ b/tests/test_ops.py @@ -48,12 +48,14 @@ is_tuple, never, parametrize, + skipif_android, skipif_ios, skipif_wasm, ) @skipif_wasm +@skipif_android @skipif_ios def test_import_no_warnings(): env = { diff --git a/tests/test_treespec.py b/tests/test_treespec.py index 7f11501c..bf387726 100644 --- a/tests/test_treespec.py +++ b/tests/test_treespec.py @@ -47,6 +47,7 @@ gc_collect, parametrize, recursionlimit, + skipif_android, skipif_ios, skipif_pypy, skipif_wasm, @@ -58,6 +59,7 @@ reason='Only run on x86_64 and AMD64 architectures', ) @skipif_wasm +@skipif_android @skipif_ios @skipif_pypy @disable_systrace @@ -526,6 +528,7 @@ def __init__(self, x, y): @skipif_wasm +@skipif_android @skipif_ios def test_treespec_pickle_missing_registration(): if sys.version_info[:2] == (3, 11) and platform.system() == 'Windows' and Py_DEBUG: From ae7af6207086aaecff58d442e91b0b297f942246 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 17 Oct 2025 15:25:14 +0800 Subject: [PATCH 06/14] chore(workflows/build): add platform to job name and cache key --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d4a3043c..6f7bab65 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,7 @@ jobs: build-wheels: name: >- Build wheels for Python ${{ matrix.python-version }} - on ${{ matrix.target.runner }} (${{ matrix.target.archs }}) + on ${{ matrix.target.runner }} (${{ matrix.target.platform }} / ${{ matrix.target.archs }}) if: | github.repository_owner == 'metaopt' && (github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')) && @@ -303,7 +303,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels-${{ env.PYTHON_TAG }}-${{ runner.os }}-${{ matrix.target.archs }} + name: wheels-${{ env.PYTHON_TAG }}-${{ runner.os }}-${{ matrix.target.platform }}-${{ matrix.target.archs }} path: wheelhouse/*.whl if-no-files-found: ${{ env.ALLOW_PRERELEASES == 'true' && 'warn' || 'error' }} From 1bd5213f6e2c386d53e9ed6b3fbb37e1d2e1da6a Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Sat, 18 Oct 2025 00:01:45 +0800 Subject: [PATCH 07/14] chore(workflows/build): use macos-26 --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f7bab65..e0ee6ac9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -152,23 +152,23 @@ jobs: # iOS - python-version: "3.13" target: - runner: macos-latest + runner: macos-26 platform: ios archs: "arm64_iphoneos" - python-version: "3.14" target: - runner: macos-latest + runner: macos-26 platform: ios archs: "arm64_iphoneos" # iOS Simulator - python-version: "3.13" target: - runner: macos-latest + runner: macos-26 platform: ios archs: "arm64_iphonesimulator" - python-version: "3.14" target: - runner: macos-latest + runner: macos-26 platform: ios archs: "arm64_iphonesimulator" # Android From 415bd0f8cf3058cfa00e06b21c1b202a878aa08d Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Sat, 18 Oct 2025 12:29:38 +0800 Subject: [PATCH 08/14] chore(workflows): update job name and cache key --- .github/workflows/build.yml | 7 ++++--- .github/workflows/tests.yml | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0ee6ac9..291b8c18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,8 @@ jobs: build-wheels: name: >- - Build wheels for Python ${{ matrix.python-version }} + Build wheels for + ${{ startsWith(matrix.python-version, 'pypy') && 'PyPy' || 'CPython' }} ${{ matrix.python-version }} on ${{ matrix.target.runner }} (${{ matrix.target.platform }} / ${{ matrix.target.archs }}) if: | github.repository_owner == 'metaopt' && @@ -294,7 +295,7 @@ jobs: CIBW_ARCHS: ${{ matrix.target.archs }} CIBW_ARCHS_MACOS: ${{ matrix.target.archs }} universal2 CIBW_ENABLE: pypy cpython-freethreading${{ env.ALLOW_PRERELEASES == 'true' && ' cpython-prerelease' || '' }} - CIBW_ALLOW_EMPTY: ${{ env.ALLOW_PRERELEASES }} + CIBW_ALLOW_EMPTY: ${{ env.ALLOW_PRERELEASES == 'true' }} with: package-dir: . output-dir: wheelhouse @@ -303,7 +304,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels-${{ env.PYTHON_TAG }}-${{ runner.os }}-${{ matrix.target.platform }}-${{ matrix.target.archs }} + name: wheels-${{ env.PYTHON_TAG }}-${{ matrix.target.platform }}-${{ matrix.target.archs }} path: wheelhouse/*.whl if-no-files-found: ${{ env.ALLOW_PRERELEASES == 'true' && 'warn' || 'error' }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eb7f0f4a..2dd5c314 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,7 +49,10 @@ env: jobs: test: - name: Test for Python ${{ matrix.python-version }} on ${{ matrix.runner }} + name: >- + Test for + ${{ startsWith(matrix.python-version, 'pypy') && 'PyPy' || 'CPython' }} ${{ matrix.python-version }} + on ${{ matrix.runner }} if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} runs-on: ${{ matrix.runner }} strategy: From fc8111f7ce74526ae5fb3da6d4db2a411aa01069 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Sat, 18 Oct 2025 20:59:54 +0800 Subject: [PATCH 09/14] deps: test `pypa/cibuildwheel#2590` --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 291b8c18..9ded7e30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -288,7 +288,7 @@ jobs: platforms: all - name: Build wheels - uses: pypa/cibuildwheel@v3.2 + uses: pypa/cibuildwheel@pull/2590/merge env: CIBW_BUILD: ${{ env.CIBW_BUILD }} CIBW_PLATFORM: ${{ matrix.target.platform }} From 7e0cf360f54e87f1acd9c3af50efc9dcdab097dd Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 31 Oct 2025 00:55:27 +0800 Subject: [PATCH 10/14] chore: update pypa/cibuildwheel back to v3.2 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 321fe2e8..aaf51c6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -288,7 +288,7 @@ jobs: platforms: all - name: Build wheels - uses: pypa/cibuildwheel@pull/2590/merge + uses: pypa/cibuildwheel@v3.2 env: CIBW_BUILD: ${{ env.CIBW_BUILD }} CIBW_PLATFORM: ${{ matrix.target.platform }} From 6a2f728c7fba16abfb5203a15c4c4c733e721146 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 4 Nov 2025 13:55:33 +0800 Subject: [PATCH 11/14] chore(workflows/build): use macos-latest --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaf51c6d..fb38c89a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -153,23 +153,23 @@ jobs: # iOS - python-version: "3.13" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphoneos" - python-version: "3.14" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphoneos" # iOS Simulator - python-version: "3.13" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphonesimulator" - python-version: "3.14" target: - runner: macos-26 + runner: macos-latest platform: ios archs: "arm64_iphonesimulator" # Android From 7b63bfc0099cbb722c061b1fe5cc48eec0515b8a Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Thu, 6 Nov 2025 16:03:07 +0800 Subject: [PATCH 12/14] chore: pin `typing-extensions` for test --- pyproject.toml | 12 +++++++++++- requirements.txt | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ed52efe4..e2b91265 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,10 @@ classifiers = [ "Intended Audience :: Science/Research", "Topic :: Utilities", ] -dependencies = ["typing-extensions >= 4.6.0"] +dependencies = [ + "typing-extensions >= 4.6.0", + "typing-extensions >= 4.12.0; python_version >= '3.13'", +] dynamic = ["version"] [project.urls] @@ -69,6 +72,13 @@ test = [ "pytest-cov", "covdefaults", "rich", + # Pin to minimum for compatibility test + "typing-extensions == 4.6.0; python_version < '3.13' and platform_system == 'Linux'", + "typing-extensions == 4.6.0; python_version < '3.13' and platform_system == 'Darwin'", + "typing-extensions == 4.6.0; python_version < '3.13' and platform_system == 'Windows'", + "typing-extensions == 4.12.0; python_version >= '3.13' and platform_system == 'Linux'", + "typing-extensions == 4.12.0; python_version >= '3.13' and platform_system == 'Darwin'", + "typing-extensions == 4.12.0; python_version >= '3.13' and platform_system == 'Windows'", ] docs = [ "sphinx", diff --git a/requirements.txt b/requirements.txt index 7a345daf..bb5ece41 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ typing-extensions >= 4.6.0 +typing-extensions >= 4.12.0; python_version >= '3.13' From 4898d6c79e165f200ce8281c49582ab799300ca1 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Thu, 13 Nov 2025 10:16:36 +0800 Subject: [PATCH 13/14] deps(workflows/build): bump cibuildwheel to 3.3 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb38c89a..4e12b936 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -288,7 +288,7 @@ jobs: platforms: all - name: Build wheels - uses: pypa/cibuildwheel@v3.2 + uses: pypa/cibuildwheel@v3.3 env: CIBW_BUILD: ${{ env.CIBW_BUILD }} CIBW_PLATFORM: ${{ matrix.target.platform }} From b31034ba0948709e638cfb2964a1598980422373 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Thu, 13 Nov 2025 20:46:50 +0800 Subject: [PATCH 14/14] chore(workflows/build): stop building universal2 for macOS but build x86_64 directly --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e12b936..87cb287b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,6 +120,7 @@ jobs: - { runner: ubuntu-latest, platform: linux, archs: "s390x" } - { runner: ubuntu-latest, platform: linux, archs: "riscv64" } - { runner: macos-latest, platform: macos, archs: "auto64" } + - { runner: macos-latest, platform: macos, archs: "x86_64" } - { runner: windows-latest, platform: windows, archs: "auto64" } - { runner: windows-latest, platform: windows, archs: "auto32" } - { runner: windows-11-arm, platform: windows, archs: "ARM64" } @@ -293,7 +294,6 @@ jobs: CIBW_BUILD: ${{ env.CIBW_BUILD }} CIBW_PLATFORM: ${{ matrix.target.platform }} CIBW_ARCHS: ${{ matrix.target.archs }} - CIBW_ARCHS_MACOS: ${{ matrix.target.archs }} universal2 CIBW_ENABLE: pypy cpython-freethreading${{ env.ALLOW_PRERELEASES == 'true' && ' cpython-prerelease' || '' }} CIBW_ALLOW_EMPTY: ${{ env.ALLOW_PRERELEASES == 'true' }} with: