Skip to content
Permalink
Browse files
add sdist build to workflow
  • Loading branch information
jmalkin committed Aug 26, 2021
1 parent ed37a7a commit 5f970e5678747db6dda731352f3a4a28bc001e9f
Showing 1 changed file with 26 additions and 4 deletions.
@@ -12,6 +12,27 @@ env:
BUILD_TYPE: Release

jobs:
build_sdist:
name: Source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
persist-credentials: false

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Build sdist
run: python setup.py sdist

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

build_wheels:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
@@ -46,16 +67,17 @@ jobs:
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.8' # 3.x grabs latest minor version of python3, but not always fully supported (dependencies)
python-version: '3.8'

- name: Install Python dependencies
run: python -m pip install --upgrade pip setuptools wheel numpy tox pytest cibuildwheel==2.1.1 twine
run: python -m pip install --upgrade pip setuptools wheel numpy tox pytest build cibuildwheel==2.1.1 twine

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: python -m cibuildwheel --output-dir dist
env:
CIBW_SKIP: "*-win32"
CIBW_ARCHS_MACOS: "x86_64 universal2"

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

0 comments on commit 5f970e5

Please sign in to comment.