test wheel builds #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test wheel builds | ||
on: | ||
pull_request_review_comment: | ||
types: [created, edited] | ||
jobs: | ||
macos_wheel: | ||
if: contains(github.event.comment.body, "/wheels_all") || contains(github.event.comment.body, "/wheels_mac") | ||
Check failure on line 9 in .github/workflows/test_wheels.yml GitHub Actions / test wheel buildsInvalid workflow file
|
||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
arch: [x86_64, arm64] | ||
cw_build: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] | ||
exclude: | ||
- arch: arm64 | ||
cw_build: "cp37-*" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: build wheels | ||
uses: pypa/cibuildwheel@v2.16.2 | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
CIBW_BUILD: ${{ matrix.cw_build }} | ||
CIBW_TEST_SKIP: "*-macosx_arm64" | ||
SPLINEPY_GITHUB_ACTIONS_BUILD: True | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
retention-days: 1 | ||
linux_wheel: | ||
if: contains(github.event.comment.body, "/wheels_all") || contains(github.event.comment.body, "/wheels_linux") | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: [x86_64] | ||
cw_build: ["cp37*many*", "cp38*many*", "cp39*many*", "cp310*many*", "cp311*many*"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: build wheels | ||
uses: pypa/cibuildwheel@v2.13.1 | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
CIBW_BUILD: ${{ matrix.cw_build }} | ||
SPLINEPY_GITHUB_ACTIONS_BUILD: True | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
retention-days: 1 | ||
windows_wheel: | ||
if: contains(github.event.comment.body, "/wheels_all") || contains(github.event.comment.body, "/wheels_windows") | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
arch: [AMD64] | ||
cw_build: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: build wheels | ||
uses: pypa/cibuildwheel@v2.13.1 | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
CIBW_BUILD: ${{ matrix.cw_build }} | ||
CIBW_TEST_SKIP: "*-win_arm64" | ||
SPLINEPY_GITHUB_ACTIONS_BUILD: True | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
retention-days: 1 | ||
source_dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Build sdist | ||
run: pipx run build --sdist | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/* | ||
retention-days: 1 |