Skip to content

create wheels for linux-aarch64ush #20

create wheels for linux-aarch64ush

create wheels for linux-aarch64ush #20

Workflow file for this run

name: Build
on: [ push, pull_request ]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-14]
arch: [auto]
include:
- os: ubuntu-20.04
arch: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: pybind/pybind11
ref: v2.11.1
path: contrib/pybind11
- uses: actions/checkout@v4
with:
repository: mapbox/protozero
ref: v1.7.1
path: contrib/protozero
- uses: actions/checkout@v4
with:
repository: osmcode/libosmium
ref: v2.20.0
path: contrib/libosmium
- name: Set up QEMU
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v3
- name: Set MacOS target version
if: startsWith(matrix.os, 'macos')
run: |
sw_vers -productVersion
echo "MACOSX_DEPLOYMENT_TARGET=${sw_vers -productVersion}" >> $GITHUB_ENV
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: native
CIBW_SKIP: "pp* *musllinux* cp38-macosx_arm64 *cp313*"
CIBW_TEST_REQUIRES: pytest pytest-httpserver shapely
CIBW_TEST_REQUIRES_LINUX: urllib3<2.0 pytest pytest-httpserver shapely
CIBW_TEST_COMMAND: pytest {project}/test
CIBW_BUILD_FRONTEND: build
CIBW_BEFORE_BUILD_LINUX: yum install -y sparsehash-devel expat-devel boost-devel zlib-devel bzip2-devel lz4-devel
CIBW_BEFORE_BUILD_MACOS: brew install boost google-sparsehash
CIBW_BEFORE_BUILD_WINDOWS: vcpkg install bzip2:x64-windows expat:x64-windows zlib:x64-windows boost-variant:x64-windows boost-iterator:x64-windows lz4:x86-windows
CIBW_ENVIRONMENT_WINDOWS: 'CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"'
- uses: actions/upload-artifact@v4
with:
name: pyosmium-wheels-${{ matrix.os }}-${{ matrix.arch }}
path: ./wheelhouse/*.whl