Skip to content

try to build for armv7l on linux #48

try to build for armv7l on linux

try to build for armv7l on linux #48

Workflow file for this run

name: "Build and Publish Python Packages"
on:
push:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+"
branches:
- "fix-macos-wheels"
jobs:
#build_sdist:
# name: "Source distribution"
# runs-on: ubuntu-latest
# steps:
# - name: "Checkout the repository"
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: "Set up Python"
# uses: actions/setup-python@v5
# with:
# python-version: "3.13"
# - name: "Install python dependencies"
# run: |
# pip install setuptools cffi
# - name: "Build source distribution"
# run: |
# python setup.py sdist
# - name: "Upload artifacts"
# uses: actions/upload-artifact@v4
# with:
# name: sdist
# path: dist/
# retention-days: 1
build_wheels:
name: "Build ${{ matrix.target.name }} wheels"
runs-on: ${{ matrix.target.os }}
strategy:
fail-fast: false
matrix:
target:
- name: "Linux Intel 32bits"
os: ubuntu-24.04
arch: i686
- name: "Linux Intel 64bits"
os: ubuntu-24.04
arch: x86_64
- name: "Linux ARM 64bits"
os: ubuntu-24.04
arch: aarch64
- name: "Linux ARMv7"
os: ubuntu-24.04
arch: armv7l
- name: "macOS Intel 64bits"
os: macos-13
arch: x86_64
- name: "macOS Apple Silicon (ARM 64bits)"
os: macos-14
arch: arm64
- name: "Windows Intel 64bit"
os: windows-2022
arch: AMD64
steps:
- name: "Checkout the repository"
uses: actions/checkout@v4
with:
submodules: true
- name: "Set up QEMU"
if: runner.os == 'Linux' && (matrix.target.arch == 'aarch64' || matrix.target.arch == 'armv7l')
uses: docker/setup-qemu-action@v3
- name: "Build wheels"
uses: pypa/cibuildwheel@v3.0.0
env:
CIBW_ARCHS_LINUX: ${{ matrix.target.arch }}
CIBW_ARCHS_WINDOWS: ${{ matrix.target.arch }}
CIBW_ARCHS_MACOS: ${{ matrix.target.arch }}
CMAKE_OSX_ARCHITECTURES: ${{ matrix.target.arch }}
PIP_USE_PEP517: 1
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.target.os }}-${{ matrix.target.arch }}
path: ./wheelhouse/*.whl
retention-days: 1
#publish_pypi:
# name: "Publish packages on PyPI"
# runs-on: ubuntu-latest
# needs:
# - build_sdist
# - build_wheels
# steps:
# - name: "Download artifacts"
# uses: actions/download-artifact@v4
# - name: "Move packages to the dist/ folder"
# run: |
# mkdir dist/
# mv sdist/* dist/
# mv wheels-*/*.whl dist/
# - name: "Publish packages on PyPI"
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}