Skip to content

Commit b544194

Browse files
committed
why is building harder than the language itself
1 parent 5e8f230 commit b544194

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,29 @@ concurrency:
1414
group: build-${{ github.head_ref }}
1515

1616
jobs:
17-
build:
18-
name: Build wheels and source distribution
19-
runs-on: ubuntu-latest
17+
build_wheels:
18+
name: Build wheels on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ubuntu-20.04, windows-2019, macos-11]
2023

2124
steps:
2225
- uses: actions/checkout@v3
2326

24-
- name: Install build dependencies
25-
run: python -m pip install --upgrade build
26-
27-
- name: Build
28-
run: python -m build
27+
- name: Build wheels
28+
uses: pypa/cibuildwheel@v2.8.1
29+
# env:
30+
# CIBW_SOME_OPTION: value
31+
# ...
32+
# with:
33+
# package-dir: .
34+
# output-dir: wheelhouse
35+
# config-file: "{package}/pyproject.toml"
2936

3037
- uses: actions/upload-artifact@v3
3138
with:
32-
name: artifacts
33-
path: dist/*
34-
if-no-files-found: error
39+
path: ./wheelhouse/*.whl
3540

3641
publish:
3742
name: Publish release

0 commit comments

Comments
 (0)