summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/wheel-manylinux.yml93
-rw-r--r--.github/workflows/wheels.yml6
2 files changed, 2 insertions, 97 deletions
diff --git a/.github/workflows/wheel-manylinux.yml b/.github/workflows/wheel-manylinux.yml
deleted file mode 100644
index 7a2ecd926..000000000
--- a/.github/workflows/wheel-manylinux.yml
+++ /dev/null
@@ -1,93 +0,0 @@
-name: Linux wheel build
-
-on:
- release:
- types: [created]
-
-jobs:
- python:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
-
- - name: Set up Python
- uses: actions/setup-python@v3
- with:
- python-version: "3.10"
-
- - name: Install build dependencies
- run: pip install -U "setuptools<60" pip wheel
-
- - name: Make sdist and Python wheel
- run: make sdist pywheel
-
- - name: Release
- uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
- with:
- files: |
- dist/*.tar.gz
- dist/*-none-any.whl
-
- - name: Upload sdist
- uses: actions/upload-artifact@v3
- with:
- name: sdist
- path: dist/*.tar.gz
- if-no-files-found: ignore
-
- - name: Upload Python wheel
- uses: actions/upload-artifact@v3
- with:
- name: wheel-Python
- path: dist/*-none-any.whl
- if-no-files-found: ignore
-
- binary:
- strategy:
- # Allows for matrix sub-jobs to fail without canceling the rest
- fail-fast: false
-
- matrix:
- image:
- - manylinux2014_x86_64
- - manylinux2014_i686
- - musllinux_1_1_x86_64
- - musllinux_1_1_aarch64
- - manylinux_2_24_x86_64
- - manylinux_2_24_i686
- - manylinux_2_24_aarch64
- - manylinux_2_28_x86_64
- - manylinux_2_28_aarch64
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
-
- - name: Set up Python 3.10
- uses: actions/setup-python@v3
- with:
- python-version: "3.10"
-
- - name: Building wheel
- run: |
- make sdist wheel_${{ matrix.image }}
-
- - name: Copy wheels in dist
- run: cp wheelhouse*/*.whl dist/
-
- - name: Release
- uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
- with:
- files: |
- dist/*manylinux*.whl
- dist/*musllinux*.whl
-
- - name: Archive Wheels
- uses: actions/upload-artifact@v3
- with:
- name: ${{ matrix.image }}
- path: dist/*m[au][ns][yl]linux*.whl
- if-no-files-found: ignore
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 902f1a49f..58266f96d 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -1,16 +1,14 @@
# Workflow to build wheels for upload to PyPI.
-# While this workflow is not active right now,
-# it will be used for Cython 3.1 after Python 2.7
-# support is dropped.
#
# In an attempt to save CI resources, wheel builds do
-# not run by default.
+# not run on each push but only weekly and for releases.
# Wheel builds can be triggered from the Actions page
# (if you have the perms) on a commit to master.
#
# Alternatively, if you would like to trigger wheel builds
# on a pull request, the labels that trigger builds are:
# - Build System
+
name: Wheel Builder
on:
release: