-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (40 loc) · 1.3 KB
/
python-wheels.yaml
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
name: Build Python Wheels
# Build wheels only on a release branch or when requested since it's expensive
on:
workflow_dispatch:
inputs:
version:
description: "Version to force on wheels"
required: false
type: string
default: ""
push:
branches:
- 'maint-**'
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse python/geoarrow-c
env:
CIBW_ARCHS_MACOS: x86_64 arm64
# Optional (test suite will pass if these are not available)
CIBW_BEFORE_TEST: pip install --only-binary ":all:" pyarrow numpy || pip install --only-binary ":all:" numpy || true
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest {package}/tests
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl