Skip to content

Commit

Permalink
Build PyPy wheels also
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 7, 2020
1 parent 2dfe9f1 commit 215996b
Showing 1 changed file with 41 additions and 7 deletions.
48 changes: 41 additions & 7 deletions .github/workflows/kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ name: Build kits
on:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
Expand All @@ -22,7 +26,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v2

- name: Install Python
- name: Install Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"
Expand All @@ -43,24 +47,54 @@ jobs:
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check out the repo
uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
- name: Install Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"

- name: Build sdist
run: python setup.py sdist
run: |
python setup.py sdist
- uses: actions/upload-artifact@v2
- name: Upload sdist
uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

build_pypy:
name: Build PyPy wheels
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Install PyPy
uses: actions/setup-python@v2
with:
python-version: "pypy3"

- name: Install requirements
run: |
pypy3 -m pip install -r requirements/wheel.pip
- name: Build wheels
run: |
pypy3 setup.py bdist_wheel --python-tag pp36
pypy3 setup.py bdist_wheel --python-tag pp37
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
path: dist/*.whl

0 comments on commit 215996b

Please sign in to comment.