Skip to content

v0.1.2 [key and reverse params for sort and factory classes as wrappers for core] #21

v0.1.2 [key and reverse params for sort and factory classes as wrappers for core]

v0.1.2 [key and reverse params for sort and factory classes as wrappers for core] #21

Workflow file for this run

name: Build wheel
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: macos-latest
arch: 'x86_64'
- os: macos-latest
arch: 'arm64'
- os: macos-latest
arch: 'universal2'
- os: windows-latest
arch: 'x86'
- os: windows-latest
arch: 'AMD64'
- os: windows-latest
arch: 'ARM64'
steps:
- name: Set up QEMU
if: ${{ 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/[email protected]
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
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/symusic
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
#with:
# To test: repository-url: https://test.pypi.org/legacy/