Skip to content
Merged
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
37 changes: 33 additions & 4 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,37 @@ on:
- v*

jobs:
build-wheels:
build-wheels-native:
name: "native ${{ matrix.arch }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [x86_64, i686]
steps:
- name: Checkout repo
uses: actions/checkout@v6

- name: Build wheels
uses: pypa/cibuildwheel@v2.23
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_TEST_COMMAND: "python -c \"import lzo; d=b'test'*42; assert lzo.decompress(lzo.compress(d))==d\""

- name: Upload wheels
uses: actions/upload-artifact@v6
with:
name: wheels-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
if-no-files-found: error

build-wheels-emulated:
name: "emulated ${{ matrix.arch }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [aarch64, ppc64le, s390x, armv7l]
steps:
- name: Checkout repo
uses: actions/checkout@v6
Expand All @@ -26,13 +55,13 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.23
env:
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64 ppc64le s390x armv7l"
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_TEST_COMMAND: "python -c \"import lzo; d=b'test'*42; assert lzo.decompress(lzo.compress(d))==d\""

- name: Upload wheels
uses: actions/upload-artifact@v6
with:
name: wheels-linux
name: wheels-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
if-no-files-found: error

Expand Down Expand Up @@ -61,7 +90,7 @@ jobs:

publish-testpypi:
name: Publish to TestPyPI
needs: [build-wheels, sdist]
needs: [build-wheels-native, build-wheels-emulated, sdist]
if: inputs.publish_to_testpypi
runs-on: ubuntu-latest
environment:
Expand Down
Loading