Skip to content

Commit 4f03ab4

Browse files
authored
Merge pull request #55 from atomscale-ai/bugfix/macos_build
Update release wflow
2 parents 1bc7504 + 15a7000 commit 4f03ab4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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
@@ -39,11 +39,6 @@ jobs:
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
@@ -57,7 +52,7 @@ jobs:
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: |
@@ -74,7 +69,7 @@ jobs:
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.

0 commit comments

Comments
 (0)