Skip to content

Commit

Permalink
Add a github actions workflow that will build wheels for Pgenlib pyth…
Browse files Browse the repository at this point in the history
…on package.
  • Loading branch information
pettyalex committed Feb 28, 2024
1 parent 2af72fd commit e133401
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_python_wheel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Builds Python wheels for Pgenlib

# At this time, builds only on macOS aarch64
# because of problems with symlinks and the
# dockerized cibuildwheel Linux build

name: Build Python Wheel

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14]

steps:
- uses: actions/checkout@v4

- name: Set up QEMU for aarch64 emulation
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/[email protected]
with:
package-dir: './2.0/Python'
env:
CIBW_ARCHS_LINUX: auto aarch64

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

0 comments on commit e133401

Please sign in to comment.