Skip to content

added armv7l arch

added armv7l arch #97

name: Build secondary wheels
on:
push:
tags:
- v*
pull_request:
paths:
- '**'
jobs:
build_wheels:
name: Build secondary wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
cibw_archs: "aarch64 armv7l"
- os: windows-latest
cibw_archs: "ARM64"
- os: macos-14
cibw_archs: "native"
- os: macos-13
cibw_archs: "x86_64"
steps:
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64 armv7l'
uses: docker/setup-qemu-action@v3
with:
platforms:
arm64,arm
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.21.2
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_SKIP: "cp311-* cp312-* cp313-* pp*"
CIBW_TEST_REQUIRES: pytest typing_extensions mypy
CIBW_TEST_COMMAND: >
python -X faulthandler {package}/test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler -s {package} &&
python {package}/test/run_type_checker.py
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build sdist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist
run: pipx run build --sdist
- name: Copy sdist package
run: cp dist/frozendict-*.tar.gz dist/frozendict.tar.gz
- name: Build wheels
uses: pypa/cibuildwheel@v2.21.2
env:
CIBW_ARCHS: native
CIBW_BUILD: "cp310-*"
CIBW_SKIP: "*-musllinux_*"
CIBW_TEST_REQUIRES: pytest typing_extensions mypy
CIBW_TEST_COMMAND: >
python -X faulthandler {package}/test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler -s {package} &&
python {package}/test/run_type_checker.py
with:
package-dir: dist/frozendict.tar.gz
- name: Remove test sdist package
run: rm dist/frozendict.tar.gz
- name: Upload sdist artifact
uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz