Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Sourty committed Jun 1, 2024
1 parent 34835ec commit dd8cfac
Showing 1 changed file with 19 additions and 36 deletions.
55 changes: 19 additions & 36 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, ubuntu-20.04]
os: [ubuntu-latest]

steps:
- name: Checkout code
Expand All @@ -36,8 +36,15 @@ jobs:
- name: Install build tools
run: pip install wheel

- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Build the package in manylinux2014 docker container
run: |
docker run --rm -e PYTHON_VERSION=${{ matrix.python-version }} \
-v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c "
yum install -y python${{ matrix.python-version }}-devel
/opt/python/cp${{ matrix.python-version }}-cp${{ matrix.python-version }}*/bin/pip install setuptools-rust==1.9.0 wheel
/opt/python/cp${{ matrix.python-version }}-cp${{ matrix.python-version }}*/bin/python setup.py bdist_wheel
"
- name: Rename wheels
run: |
Expand All @@ -49,7 +56,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist-manylinux2014-${{ matrix.python-version }}-${{ matrix.os }}
name: dist-manylinux2014-${{ matrix.python-version }}
path: renamed_wheels/*

build-macos:
Expand Down Expand Up @@ -128,50 +135,26 @@ jobs:
- name: Download Linux artifacts for Python 3.8
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.8-ubuntu-latest
path: dist/linux/3.8/ubuntu-latest

- name: Download Linux artifacts for Python 3.8 (Ubuntu 20.04)
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.8-ubuntu-20.04
path: dist/linux/3.8/ubuntu-20.04
name: dist-manylinux2014-3.8
path: dist/linux/3.8

- name: Download Linux artifacts for Python 3.9
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.9-ubuntu-latest
path: dist/linux/3.9/ubuntu-latest

- name: Download Linux artifacts for Python 3.9 (Ubuntu 20.04)
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.9-ubuntu-20.04
path: dist/linux/3.9/ubuntu-20.04
name: dist-manylinux2014-3.9
path: dist/linux/3.9

- name: Download Linux artifacts for Python 3.10
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.10-ubuntu-latest
path: dist/linux/3.10/ubuntu-latest

- name: Download Linux artifacts for Python 3.10 (Ubuntu 20.04)
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.10-ubuntu-20.04
path: dist/linux/3.10/ubuntu-20.04
name: dist-manylinux2014-3.10
path: dist/linux/3.10

- name: Download Linux artifacts for Python 3.11
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.11-ubuntu-latest
path: dist/linux/3.11/ubuntu-latest

- name: Download Linux artifacts for Python 3.11 (Ubuntu 20.04)
uses: actions/download-artifact@v3
with:
name: dist-manylinux2014-3.11-ubuntu-20.04
path: dist/linux/3.11/ubuntu-20.04
name: dist-manylinux2014-3.11
path: dist/linux/3.11

- name: Download macOS artifacts for Python 3.8
uses: actions/download-artifact@v3
Expand Down

0 comments on commit dd8cfac

Please sign in to comment.