Skip to content

Commit

Permalink
Make prod pypi match test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 18, 2024
1 parent 1e26218 commit ca05734
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
pyver: [cp39, cp310, cp311, cp312, cp313]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: pp*
CIBW_BUILD: ${{ matrix.pyver }}-*
CIBW_BEFORE_BUILD: python -c "import shutil ; shutil.copyfile('tools/setup-pypi.cfg','setup.apsw')"
CIBW_TEST_COMMAND: python -m apsw.tests -v
APSW_HEAVY_DURATION: 2

- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
name: dist-${{ matrix.os }}-${{ matrix.pyver }}
path: ./wheelhouse/*.whl


Expand All @@ -32,6 +33,8 @@ jobs:
strategy:
matrix:
arch: [aarch64]
pyver: [cp39, cp310, cp311, cp312, cp313]
libc: [manylinux, musllinux]

steps:
- uses: actions/checkout@v4
Expand All @@ -44,15 +47,15 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: pp*
CIBW_BUILD: ${{ matrix.pyver }}-${{ matrix.libc }}*
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BEFORE_BUILD: python -c "import shutil ; shutil.copyfile('tools/setup-pypi.cfg','setup.apsw')"
CIBW_TEST_COMMAND: python -m apsw.tests -v
APSW_HEAVY_DURATION: 2

- uses: actions/upload-artifact@v4
with:
name: dist-qemu-${{ matrix.arch }}
name: dist-qemu-${{ matrix.arch }}-${{ matrix.pyver }}-${{ matrix.libc }}
path: ./wheelhouse/*.whl


Expand Down

0 comments on commit ca05734

Please sign in to comment.