File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1212 strategy :
1313 fail-fast : false
1414 matrix :
15- os : [ubuntu-latest, macos-13 , windows-latest] # macos-13 (Intel) can produce universal2
15+ os : [ubuntu-latest, macos-latest , windows-latest] # macos-latest provides Apple Silicon runners
1616
1717 steps :
1818 - uses : actions/checkout@v4
3939 if : runner.os != 'Linux'
4040 uses : dtolnay/rust-toolchain@stable
4141
42- - name : Add macOS universal2 targets
43- if : runner.os == 'macOS'
44- run : |
45- rustup target add x86_64-apple-darwin aarch64-apple-darwin
46-
4742 - name : Upgrade pip & install build tooling
4843 run : |
4944 python -m pip install --upgrade pip
5752 CIBW_SKIP : " pp* *-manylinux_i686 *-musllinux_*"
5853 # Architectures
5954 CIBW_ARCHS_LINUX : " x86_64"
60- CIBW_ARCHS_MACOS : " universal2 "
55+ CIBW_ARCHS_MACOS : " arm64 "
6156 CIBW_ARCHS_WINDOWS : " AMD64"
6257 # Ensure Rust is present inside manylinux Docker images
6358 CIBW_BEFORE_ALL_LINUX : |
7469 curl https://sh.rustup.rs -sSf | sh -s -- -y
7570 CIBW_ENVIRONMENT_LINUX : ' PATH="$HOME/.cargo/bin:$PATH"'
7671 CIBW_ENVIRONMENT_MACOS : >
77- MACOSX_DEPLOYMENT_TARGET=10.12
72+ MACOSX_DEPLOYMENT_TARGET=11.0
7873 # Make sure setuptools-rust is available in the build env
7974 CIBW_BEFORE_BUILD : " python -m pip install -U pip setuptools setuptools-rust wheel"
8075 # (Optional) If extra system deps, use CIBW_BEFORE_ALL_* hooks per OS.
You can’t perform that action at this time.
0 commit comments