Skip to content

build-wheels

build-wheels #35

Workflow file for this run

name: build-wheels
on:
workflow_dispatch:
inputs:
release-testpypi:
description: Do you want to release to test-pypi
required: true
default: true
type: boolean
release:
description: Do you want to release to pypi
required: true
default: false
type: boolean
jobs:
build_wheels_pypitest:
name: Build test wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: ${{ inputs.release-testpypi }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v4
- name: rename file
run: |
cp setup_pypi_test.py setup.py
- uses: actions/setup-python@v3
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Release dist
if: runner.os == 'Linux'
run: |
pip install build
python -m build -s --outdir wheelhouse
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.3
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_WINDOWS: ARM64 AMD64 x86
CIBW_ARCHS_MACOS: auto x86_64 arm64
CIBW_SKIP: cp37-* cp38-* cp36-* pp*
# CIBW_BEFORE_BUILD_LINUX: pip install 'setuptools<72.2.0'
# CIBW_BEFORE_BUILD_MACOS: pip install 'setuptools<72.2.0'
- uses: actions/upload-artifact@v4
with:
name: pypi_test
path: ./wheelhouse/*
publish-pypitest:
needs: build_wheels_pypitest
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: pypi_test
path: ./wheelhouse/
- name: show all artifact
run: |
ls -R ./wheelhouse/
- name: Publish package to pypitest
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.EELIUTEST }}
packages_dir: ./wheelhouse/
repository_url: https://test.pypi.org/legacy/
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: ${{ inputs.release }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Release dist
if: runner.os == 'Linux'
run: |
pip install build
python -m build -s --outdir wheelhouse
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_WINDOWS: ARM64 AMD64 x86
CIBW_ARCHS_MACOS: auto x86_64 arm64
- uses: actions/@v4

Check failure on line 121 in .github/workflows/build-wheels.yml

View workflow run for this annotation

GitHub Actions / build-wheels

Invalid workflow file

The workflow is not valid. .github/workflows/build-wheels.yml (Line: 121, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'actions/@v4' Input string was not in a correct format. Failure to parse near offset 81. Expected an ASCII digit.
with:
name: pypi
path: ./wheelhouse/*
publish:
needs: build_wheels
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: pypi
path: ./wheelhouse/
- name: show all artifact
run: |
ls -R ./wheelhouse/
exit 0
- name: Publish package to pypitest
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PINPOINTPY }}
packages_dir: ./wheelhouse/