Skip to content

Commit 8594b83

Browse files
committed
Add build and release
1 parent a984f55 commit 8594b83

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/wheels.yaml renamed to .github/workflows/build-and-release.yaml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
name: Build
1+
name: Build Release
22

33
on: workflow_dispatch
4-
# push:
5-
# branches:
6-
# - main
74

85
jobs:
96
build_wheels:
107
name: Build wheels on ${{ matrix.os }}
118
runs-on: ${{ matrix.os }}
129
strategy:
1310
matrix:
14-
os: [ubuntu-20.04, windows-2019, macOS-11]
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
1512

1613
steps:
1714
- uses: actions/checkout@v3
@@ -30,10 +27,26 @@ jobs:
3027
3128
- name: Build wheels
3229
run: python -m cibuildwheel --output-dir wheelhouse
33-
# to supply options, put them in 'env', like:
34-
# env:
35-
# CIBW_SOME_OPTION: value
3630

3731
- uses: actions/upload-artifact@v3
3832
with:
3933
path: ./wheelhouse/*.whl
34+
35+
build_sdist:
36+
name: Build source distribution
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v3
41+
with:
42+
submodules: "true"
43+
- uses: actions/setup-python@v3
44+
- name: Install dependencies
45+
run: |
46+
python -m pip install --upgrade pip pytest cmake scikit-build setuptools
47+
- name: Build source distribution
48+
run: |
49+
python setup.py sdist
50+
- uses: actions/upload-artifact@v3
51+
with:
52+
path: ./dist/*.tar.gz

0 commit comments

Comments
 (0)