Skip to content

Commit

Permalink
Use python -mbuild for both sdist and wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Feb 1, 2023
1 parent d8a884c commit 178c2d8
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,23 @@ on:
- '*'

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]

steps:
- uses: actions/checkout@v2

# Used to host cibuildwheel
- uses: actions/setup-python@v2

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

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_MACOS: "x86_64 arm64"

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
build_dist:
name: Build Distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build sdist
run: |
pip install build
python -m build --sdist
python -m build --sdist --wheel
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
path: dist/*

store_tag_artifacts:
needs: [build_wheels, build_sdist]
needs: [build_dist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
Expand Down

0 comments on commit 178c2d8

Please sign in to comment.