-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
53 lines (50 loc) · 1.95 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
build_and_store_wheels: &BUILD_AND_STORE_WHEELS
run_cibuildwheel_script:
- bash ci/scripts/run_cibuildwheel.sh
wheels_artifacts:
path: "wheelhouse/*"
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.10
CIBW_BUILD: cp310-manylinux*
only_if: $CIRRUS_BRANCH == 'main'
- env:
PYTHON_VERSION_NAME: python 3.11
CIBW_BUILD: cp311-manylinux*
- env:
PYTHON_VERSION_NAME: python 3.12
CIBW_BUILD: cp312-manylinux*
only_if: $CIRRUS_BRANCH == 'main'
env:
CIBW_BUILD_FRONTEND: build
# Run the container in host mode so that vcpkg has access to the Cirrus CI cache
CIBW_CONTAINER_ENGINE: "docker; create_args: --network=host"
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.1601
# There's no python-casacore wheel for amd64-linux or macosx
CIBW_TEST_COMMAND_LINUX: python -c "from arcae.testing import sanity; sanity()"
VCPKG_INSTALLED_DIR: /tmp/vcpkg_installed
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