Skip to content

Commit

Permalink
Add build CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ben9923 committed Oct 9, 2022
1 parent aee4049 commit 7c6496d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build

on: [push, pull_request, workflow_dispatch]

jobs:
build_wheels:
name: Build wheels
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-*
CIBW_ARCHS: auto64

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

build_legacy_wheels:
name: Build legacy wheels
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp27-* cp35-*
CIBW_ARCHS: auto64

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

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

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

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

0 comments on commit 7c6496d

Please sign in to comment.