Wheels #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Wheels | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
schedule: | |
- cron: "30 4 15 * *" | |
env: | |
PIP_DISABLE_PIP_VERSION_CHECK: 1 | |
PIP_NO_PYTHON_VERSION_WARNING: 1 | |
permissions: {} | |
jobs: | |
wheels: | |
name: Building for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macOS-11, macOS-14] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Set up QEMU | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- uses: pypa/[email protected] | |
env: | |
# Only build CPython 3.7, because we have portable abi3 wheels. | |
# Windows arm64 is only available on 3.9 and later, Apple Silicon on | |
# 3.8 and later. | |
CIBW_BUILD: "cp37-* pp37-* pp38-* cp39-win_arm64 cp38-macosx_universal2" | |
CIBW_ARCHS_LINUX: "auto aarch64" | |
CIBW_ARCHS_MACOS: "auto universal2" | |
CIBW_TEST_COMMAND: python -c "from _argon2_cffi_bindings import ffi, lib; print(lib.ARGON2_VERSION_NUMBER)" | |
# https://github.com/pypa/cibuildwheel/pull/1169 | |
CIBW_TEST_SKIP: "*-macosx_universal2:arm64" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |
... |