Skip to content

Commit

Permalink
use macos-14 as macos arm build runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
graphenn authored and brentp committed May 25, 2024
1 parent 70cc9b3 commit b0267cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- [ubuntu-22.04, manylinux_aarch64]
- [ubuntu-22.04, musllinux_aarch64]
- [macos-12, macosx_x86_64]
- [macos-12, macosx_arm64]
- [macos-14, macosx_arm64]
python-version: [pp310, cp37, cp38, cp39, cp310, cp311, cp312]
exclude:
# pp310, cp37, cp38 on musllinux is not support
Expand All @@ -49,10 +49,13 @@ jobs:
python-version: cp310
- buildplat: [ubuntu-22.04, musllinux_aarch64]
python-version: pp310
# cp37, pp310 on macos arm64 is not supported
- buildplat: [macos-12, macosx_arm64]
# cp37 on macos arm64 is not supported
- buildplat: [macos-14, macosx_arm64]
python-version: cp37
- buildplat: [macos-12, macosx_arm64]
# cp38 pp310 on macos arm64 have some problem
- buildplat: [macos-14, macosx_arm64]
python-version: cp38
- buildplat: [macos-14, macosx_arm64]
python-version: pp310

steps:
Expand All @@ -65,7 +68,7 @@ jobs:
uses: docker/setup-qemu-action@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.4
uses: pypa/cibuildwheel@v2.18.1
with:
package-dir: .
output-dir: wheelhouse
Expand All @@ -85,16 +88,15 @@ jobs:
CIBW_REPAIR_WHEEL_COMMAND_LINUX: 'LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64" && auditwheel repair -w {dest_dir} {wheel}'

# macos
CIBW_ARCHS_MACOS: auto64 arm64
CIBW_ARCHS_MACOS: auto64
CIBW_BEFORE_BUILD_MACOS: "{project}/ci/osx-deps"

CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"

# build
CIBW_ENVIRONMENT: >-
CYVCF2_HTSLIB_CONFIGURE_OPTIONS="--enable-libcurl --enable-s3 --enable-lzma --enable-bz2 --with-libdeflate"
CYTHONIZE=1
CIBW_TEST_COMMAND: "{project}/ci/test"
# macOS build arm64 on x86_64 with cross-compiler, not support test
CIBW_TEST_SKIP: "*-macosx_arm64"

# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
Expand Down
2 changes: 1 addition & 1 deletion ci/linux-deps
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ alpine)
centos)
yum install -y bzip2-devel xz-devel libcurl-devel openssl-devel

LIBDEFLATE_VERSION=1.19
LIBDEFLATE_VERSION=1.20
curl -L -o libdeflate-v"$LIBDEFLATE_VERSION".tar.gz https://github.com/ebiggers/libdeflate/archive/refs/tags/v"$LIBDEFLATE_VERSION".tar.gz
tar xzf libdeflate-v"$LIBDEFLATE_VERSION".tar.gz
cd libdeflate-"$LIBDEFLATE_VERSION"
Expand Down
13 changes: 6 additions & 7 deletions ci/osx-deps
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@

set -euo pipefail

export DYLD_LIBRARY_PATH=/usr/local/lib
# same with python
export MACOSX_DEPLOYMENT_TARGET=10.9

brew install automake
brew install automake libdeflate
brew unlink xz

# build liblzma and libdelfate for muti arch
# build liblzma and libdelfate for deployment target 10.9

XZ_VERSION=5.4.5
XZ_VERSION=5.4.6
curl -L -o xz-$XZ_VERSION.tar.gz "https://github.com/tukaani-project/xz/releases/download/v$XZ_VERSION/xz-$XZ_VERSION.tar.gz"
tar -xf xz-$XZ_VERSION.tar.gz
cd xz-$XZ_VERSION
cmake -B build && cmake --build build
cd ./build && make install
cd ./build && sudo make install

LIBDEFLATE_VERSION=1.19
LIBDEFLATE_VERSION=1.20
curl -L -o libdeflate-v"$LIBDEFLATE_VERSION".tar.gz https://github.com/ebiggers/libdeflate/archive/refs/tags/v"$LIBDEFLATE_VERSION".tar.gz
tar xzf libdeflate-v"$LIBDEFLATE_VERSION".tar.gz
cd libdeflate-"$LIBDEFLATE_VERSION"
cmake -B build && cmake --build build
cd ./build && make install
cd ./build && sudo make install

0 comments on commit b0267cb

Please sign in to comment.