Skip to content

Run dep scripts in cibuildwheel #69

Run dep scripts in cibuildwheel

Run dep scripts in cibuildwheel #69

Workflow file for this run

name: release-main
on:
workflow_dispatch:
push:
branches: [ci_update]
jobs:
build_wheels:
name: "Build wheels on ${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
continue-on-error: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build wheels on ${{ matrix.os }}
uses: pypa/cibuildwheel@v3.3.1
env:
CIBW_SKIP: "cp314*"
CIBW_BEFORE_ALL: |
if [ "$(uname)" = "Darwin" ]; then
./scripts/build-deps-macos.sh
elif [ "$(uname)" = "Linux" ]; then
./scripts/build-deps-linux.sh
fi
- uses: actions/upload-artifact@v4
if: always()
with:
name: distribution-${{ matrix.os }}
path: ./wheelhouse/*.whl
# release:
# needs: [build_wheels]
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/download-artifact@v4
# with:
# name: distribution-*
# path: dist/
# - name: Setup Python
# uses: actions/setup-python@v6
# - name: Install tox
# run: |
# python -m pip install tox
# - name: Release
# run: tox -e release
# env:
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}