Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/pythonpackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,31 @@ jobs:

strategy:
matrix:
os: [ubuntu-22.04, macos-latest, windows-latest]
os: [ubuntu-22.04, ubuntu-24.04-arm, macos-latest, windows-latest]
arch: [auto64]
include:
- os: ubuntu-22.04
arch: aarch64

name: Build wheels for ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up QEMU
if: matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@v3

- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel cibuildwheel
python -m pip install -U pip setuptools wheel 'cibuildwheel<4'

- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_LINUX: ${{ matrix.os == 'ubuntu-24.04-arm' && 'aarch64' || 'x86_64 i686' }}
CIBW_PRERELEASE_PYTHONS: "false"
CIBW_SKIP: "pp*"
CIBW_TEST_COMMAND_LINUX: cp {project}/test_pycld2.py . && python test_pycld2.py

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -116,4 +111,4 @@ jobs:
merge-multiple: true

- name: Publish package to PyPI (OIDC)
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1