-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build MacOS arm64/x86 and Linux arm64 wheels (#76)
- Loading branch information
Showing
11 changed files
with
240 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
build_and_store_wheels: &BUILD_AND_STORE_WHEELS | ||
install_cibuildwheel_script: | ||
- python -m pip install cibuildwheel==2.16.5 | ||
run_cibuildwheel_script: | ||
- cibuildwheel | ||
wheels_artifacts: | ||
path: "wheelhouse/*" | ||
|
||
env: | ||
VCPKG_INSTALLED_DIR: /tmp/vcpkg_installed | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_BEFORE_ALL_LINUX: yum install -y zip flex bison gcc-gfortran | ||
CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/manylinux_2_28_aarch64 | ||
CIBW_REPAIR_WHEEL_COMMAND_LINUX: > | ||
auditwheel repair -w {dest_dir} {wheel} | ||
--exclude libarrow_python.so | ||
--exclude libarrow.so.1500 | ||
# There's no python-casacore wheel for amd64-linux or macosx | ||
# CIBW_TEST_EXTRAS: test | ||
# CIBW_TEST_COMMAND: py.test -s -vvv --pyargs arcae | ||
|
||
linux_aarch64_task: | ||
name: Build linux amd64 ${PYTHON_VERSION_NAME} manylinux_2_28 wheel | ||
compute_engine_instance: | ||
image_project: cirrus-images | ||
image: family/docker-builder-arm64 | ||
architecture: arm64 | ||
platform: linux | ||
cpu: 2 | ||
memory: 4G | ||
|
||
install_pre_requirements_script: | ||
- apt install -y python3-venv python-is-python3 | ||
<<: *BUILD_AND_STORE_WHEELS | ||
|
||
matrix: | ||
- env: | ||
PYTHON_VERSION_NAME: python 3.9 | ||
CIBW_BUILD: cp39-manylinux* | ||
only_if: $CIRRUS_BRANCH == 'main' | ||
- env: | ||
PYTHON_VERSION_NAME: python 3.10 | ||
CIBW_BUILD: cp310-manylinux* | ||
only_if: $CIRRUS_BRANCH == 'main' | ||
- env: | ||
PYTHON_VERSION_NAME: python 3.11 | ||
CIBW_BUILD: cp311-manylinux* | ||
only_if: $CIRRUS_BRANCH == 'main' | ||
- env: | ||
PYTHON_VERSION_NAME: python 3.12 | ||
CIBW_BUILD: cp312-manylinux* | ||
env: | ||
# Run the container in host mode so that vcpkg has access to the Cirrus CI cache | ||
CIBW_CONTAINER_ENGINE: "docker; create_args: --network=host" | ||
VCPKG_TARGET_TRIPLET: arm64-linux-dynamic-cxx17-abi1-rel | ||
CIBW_ENVIRONMENT_LINUX: > | ||
CMAKE_ARGS=-DBUILD_TESTING=OFF | ||
VCPKG_BINARY_SOURCES="clear;http,http://127.0.0.1:12321/{name}/{version}/{sha},readwrite" | ||
VCPKG_INSTALLED_DIR=$VCPKG_INSTALLED_DIR | ||
VCPKG_FORCE_SYSTEM_BINARIES=1 | ||
VCPKG_TARGET_TRIPLET=$VCPKG_TARGET_TRIPLET | ||
LD_LIBRARY_PATH=$VCPKG_INSTALLED_DIR/$VCPKG_TARGET_TRIPLET/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.