Skip to content

Commit

Permalink
change build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
juaduan committed Jul 8, 2024
1 parent 9af6ed2 commit 37570c0
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,34 @@ on:
- '*'

jobs:
build:
name: Build distribution 📦
runs-on: windows-latest
build_wheels:
name: Build wheels on ${{ matrix.os }} 📦
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
['3.9', '3.10', '3.11']
os:
['ubuntu-latest', 'macos-latest', 'windows-latest']


steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pypa/build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.2

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
Expand Down

0 comments on commit 37570c0

Please sign in to comment.