Skip to content

Commit

Permalink
create wheels for linux-aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Aug 9, 2024
1 parent a323da4 commit 168a778
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,17 1,19 @@
name: Build

on:
push:
tags:
- v**
on: [ push, pull_request ]


jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11, macos-14]
os: [ubuntu-20.04, windows-2019, macos-14]
arch: [auto]
include:
- os: ubuntu-20.04
arch: aarch64

steps:
- uses: actions/checkout@v4
Expand All @@ -34,22 36,26 @@ jobs:
ref: v2.20.0
path: contrib/libosmium

- name: Set up QEMU
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_ARCHS: native
CIBW_SKIP: "pp* *musllinux* cp38-macosx_arm64"
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_MACOS: MACOSX_DEPLOYMENT_TARGET=14.0
CIBW_ENVIRONMENT_WINDOWS: 'CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"'

- uses: actions/upload-artifact@v4
with:
name: pyosmium-wheels-${{ matrix.os }}
name: pyosmium-wheels-${{ matrix.os }}-${{ matrix.arch }}
path: ./wheelhouse/*.whl
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 10,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install packages
run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
run: |
sudo apt update -y
sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
- name: Set up Python 3.6
uses: actions/setup-python@v5
Expand Down Expand Up @@ -188,7 190,9 @@ jobs:
python-version: "${{ matrix.python }}"

- name: Install packages
run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
run: |
sudo apt update -y
sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
if: ${{ matrix.flavour == 'linux' }}

- name: Install packages
Expand Down

0 comments on commit 168a778

Please sign in to comment.