Skip to content

Commit

Permalink
build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Nov 12, 2022
1 parent d378ec1 commit fead6fd
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/pypi-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@ on:
workflow_dispatch:

jobs:
make_sdist:
name: Make SDist
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules

- name: Build SDist
run: pipx run build --sdist


build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Miniconda
Expand All @@ -25,14 +34,11 @@ jobs:
run: conda install cmake zlib numpy pytest
- name: Install cibuildwheel
run: pip install cibuildwheel
- name: Build wheels
run: |
cibuildwheel --output-dir wheelhouse
# env:
# CIBW_TEST_REQUIRES: setuptools numpy
- uses: actions/upload-artifact@v3
- uses: pypa/[email protected]
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
path: wheelhouse/*.whl

upload_to_test_pypy:
needs: [build]
Expand Down

0 comments on commit fead6fd

Please sign in to comment.