|
10 | 10 | types: |
11 | 11 | - published |
12 | 12 |
|
13 | | -env: |
14 | | - # Python 3.12+ is handled using the stable ABI, no need to build later versions |
15 | | - # Only build for PyPy 3.9 |
16 | | - CIBW_SKIP: "pp37* pp38*" |
17 | | - # Target 64 bit architectures (x86_64, and arm64 on macOS) |
18 | | - CIBW_ARCHS_WINDOWS: auto64 |
19 | | - CIBW_ARCHS_LINUX: auto64 |
20 | | - CIBW_ARCHS_MACOS: x86_64 arm64 |
21 | | - # Target older versions of macOS and Linux for good compatibility |
22 | | - CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.14 |
23 | | - CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 |
24 | | - CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 |
25 | | - # Necessary to see build output from the actual compilation |
26 | | - CIBW_BUILD_VERBOSITY: 1 |
27 | | - # Temporary: use pre-release Python 3.12 for stable API builds |
28 | | - CIBW_PRERELEASE_PYTHONS: True |
29 | | - # GitHub Actions doesn't have macOS/arm64 runners, skip test on this platform |
30 | | - CIBW_TEST_SKIP: "*-macosx_arm64" |
31 | | - # Run pytest to ensure that the package was correctly built |
32 | | - CIBW_TEST_COMMAND: pytest {project}/tests |
33 | | - CIBW_TEST_REQUIRES: pytest |
34 | | - |
35 | 13 | jobs: |
36 | 14 | build_sdist: |
37 | 15 | name: Build SDist |
|
66 | 44 | submodules: true |
67 | 45 |
|
68 | 46 | |
| 47 | + env: |
| 48 | + # Cross-compile on macOS |
| 49 | + CIBW_ARCHS_MACOS: x86_64 arm64 |
| 50 | + |
| 51 | + # Temporary: use pre-release Python 3.12 for stable API builds |
| 52 | + CIBW_PRERELEASE_PYTHONS: True |
69 | 53 |
|
70 | 54 | - name: Verify clean directory |
71 | 55 | run: git diff --exit-code |
|
0 commit comments