From 6d448e0857d8e49b3991f87f53c5d388b11e92e1 Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 22 Apr 2024 19:57:29 +0200 Subject: [PATCH] Splitting up build into multiple jobs to avoid timeout. --- .github/workflows/python-publish.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1e816ee..ae6756f 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -46,14 +46,28 @@ jobs: run: | python -m venv venv . ./venv/bin/activate - pip install -U twine cibuildwheel + pip install -U twine cibuildwheel build - - name: Build wheels + - name : Build source dist + run: | + . ./venv/bin/activate + python -m build --sdist . + + - name: Build wheels manylinux run: | . ./venv/bin/activate python -m cibuildwheel --output-dir dist env: CIBW_BEFORE_BUILD: ./build_wheel.sh + CIBW_SKIP: "*-musllinux_*" + + - name: Build wheels musllinux + run: | + . ./venv/bin/activate + python -m cibuildwheel --output-dir dist + env: + CIBW_BEFORE_BUILD: ./build_wheel.sh + CIBW_SKIP: "*-manylinux_*" - name: Publish to PyPI run: |