2020-10-23 16:23:03 +03:00
|
|
|
name: Wheels
|
|
|
|
|
2023-09-24 15:51:42 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/wheels*.yml"
|
|
|
|
- "wheels/*"
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/wheels*.yml"
|
|
|
|
- "wheels/*"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
2020-10-23 16:23:03 +03:00
|
|
|
|
2022-10-27 14:47:59 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-11-12 21:45:19 +03:00
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
|
2020-10-23 16:23:03 +03:00
|
|
|
jobs:
|
2023-11-14 15:23:46 +03:00
|
|
|
build:
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: "macOS x86_64"
|
|
|
|
os: macos-latest
|
|
|
|
archs: x86_64
|
2023-11-16 01:22:23 +03:00
|
|
|
macosx_deployment_target: "10.10"
|
2023-11-14 15:23:46 +03:00
|
|
|
- name: "macOS arm64"
|
|
|
|
os: macos-latest
|
|
|
|
archs: arm64
|
2023-11-16 01:22:23 +03:00
|
|
|
macosx_deployment_target: "11.0"
|
2023-11-14 15:23:46 +03:00
|
|
|
- name: "manylinux2014 and musllinux x86_64"
|
|
|
|
os: ubuntu-latest
|
|
|
|
archs: x86_64
|
|
|
|
- name: "manylinux_2_28 x86_64"
|
|
|
|
os: ubuntu-latest
|
|
|
|
archs: x86_64
|
|
|
|
build: "*manylinux*"
|
|
|
|
manylinux: "manylinux_2_28"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2023-11-16 01:10:44 +03:00
|
|
|
|
2023-11-14 15:23:46 +03:00
|
|
|
- name: Build wheels
|
2023-11-15 03:48:10 +03:00
|
|
|
uses: pypa/cibuildwheel@v2.16.2
|
|
|
|
with:
|
|
|
|
output-dir: wheelhouse
|
2023-11-14 15:23:46 +03:00
|
|
|
env:
|
|
|
|
CIBW_ARCHS: ${{ matrix.archs }}
|
|
|
|
CIBW_BUILD: ${{ matrix.build }}
|
|
|
|
CIBW_CONFIG_SETTINGS: raqm=enable raqm=vendor fribidi=vendor
|
|
|
|
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: ${{ matrix.manylinux }}
|
|
|
|
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
|
2023-11-16 01:32:52 +03:00
|
|
|
CIBW_SKIP: pp38-*
|
2023-11-16 00:32:34 +03:00
|
|
|
CIBW_TEST_SKIP: "*-macosx_arm64"
|
2023-11-16 01:22:23 +03:00
|
|
|
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }}
|
2023-11-16 01:10:44 +03:00
|
|
|
|
2023-11-14 15:23:46 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-11-16 01:10:44 +03:00
|
|
|
name: dist
|
2023-11-14 15:23:46 +03:00
|
|
|
path: ./wheelhouse/*.whl
|
2023-11-12 21:45:19 +03:00
|
|
|
|
|
|
|
sdist:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
cache: pip
|
|
|
|
cache-dependency-path: "Makefile"
|
|
|
|
|
|
|
|
- run: make sdist
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist/*.tar.gz
|
2022-03-30 03:36:47 +03:00
|
|
|
|
2022-01-04 01:29:34 +03:00
|
|
|
success:
|
2023-09-24 15:51:42 +03:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2023-11-14 15:23:46 +03:00
|
|
|
needs: [build, sdist]
|
2022-01-04 01:29:34 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Wheels Successful
|
|
|
|
steps:
|
|
|
|
- name: Success
|
|
|
|
run: echo Wheels Successful
|