* docs: update examples for v4 of `upload-artifact` and `download-artifact` actions * docs: use more unique artifact name * docs: update github example workflows to artifact actions v4
30 lines
687 B
YAML
30 lines
687 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build_wheels:
|
|
name: Build wheels on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04, windows-2019, macos-11]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build wheels
|
|
uses: pypa/cibuildwheel@v2.16.2
|
|
# env:
|
|
# CIBW_SOME_OPTION: value
|
|
# ...
|
|
# with:
|
|
# package-dir: .
|
|
# output-dir: wheelhouse
|
|
# config-file: "{package}/pyproject.toml"
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
|
path: ./wheelhouse/*.whl
|