Skip to content

Build test

Build test #5

Workflow file for this run

name: Build test
on:
workflow_dispatch:
pull_request:
release:
types:
- published
jobs:
build_wheels:
# env:
# CIBW_ARCHS: all
name: Build wheels on ${{ matrix.os }}, ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: 'x86_64'
- os: ubuntu-latest
arch: 'i686'
- os: ubuntu-latest
arch: 'aarch64'
- os: ubuntu-latest
arch: 'ppc64le'
- os: ubuntu-latest
arch: 's390x'
- os: macos-latest
arch: 'x86_64'
- os: macos-latest
arch: 'arm64'
- os: macos-latest
arch: 'universal2'
- os: windows
arch: 'x86'
- os: windows
arch: 'ARM64'
- os: windows
arch: 'ARM64'
steps:
- name: Set up QEMU
if: matrix.arch == 'aarch64' | matrix.arch == 'ppc64le' | matrix.arch == 's390x'

Check failure on line 44 in .github/workflows/build_wheel.yml

View workflow run for this annotation

GitHub Actions / Build test

Invalid workflow file

The workflow is not valid. .github/workflows/build_wheel.yml (Line: 44, Col: 13): Unexpected symbol: '|'. Located at position 26 within expression: matrix.arch == 'aarch64' | matrix.arch == 'ppc64le' | matrix.arch == 's390x'
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.1
env:
CIBW_ARCHS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz