Skip to content

Fix pypi aarch workflow #459

Fix pypi aarch workflow

Fix pypi aarch workflow #459

Workflow file for this run

name: Release on PyPI [Linux]
on:
pull_request:
paths-ignore:
- CHANGELOG.md
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-wheel:
name: "Build ${{ matrix.build }} wheels on ${{ matrix.arch }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
arch: ["x86_64", "aarch64"]
build: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "pp38-*", "pp39-*", "pp310-*"]
include:
- arch: "x86_64"
os: ubuntu-latest
- arch: "aarch64"
os: ubuntu-24.04-arm
exclude:
- os: "aarch64"

Check failure on line 30 in .github/workflows/release-linux.yml

View workflow run for this annotation

GitHub Actions / Release on PyPI [Linux]

Invalid workflow file

The workflow is not valid. .github/workflows/release-linux.yml (Line: 30, Col: 13): Matrix exclude key 'os' does not match any key within the matrix .github/workflows/release-linux.yml (Line: 32, Col: 13): Matrix exclude key 'os' does not match any key within the matrix
build: "cp38-*"
- os: "aarch64"
build: "pp38-*"
- os: "aarch64"
build: "pp39-*"
- os: "aarch64"
build: "pp310-*"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install -U pip
- run: python -m pip install cibuildwheel
- run: touch setup.py
if: matrix.arch == 'aarch64'
- run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: ${{ matrix.build }}
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux2014_x86_64"
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: "quay.io/pypa/manylinux2014_x86_64"
CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_28_aarch64"
CIBW_REPAIR_WHEEL_COMMAND: ""
CIBW_ENVIRONMENT: "CMEEL_JOBS=2 CMEEL_RUN_TESTS=OFF CMEEL_CMAKE_ARGS=-DBUILD_WITH_OPENMP_SUPPORT=ON"
- run: echo "ARTIFACT_NAME=dist-${{ matrix.arch }}-${{ matrix.build }}" | sed 's/\*/_/g' >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: dist
release:
needs: "build-wheel"
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
path: dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: |
github.repository == 'Simple-Robotics/proxsuite' &&
(github.event_name == 'release' && github.event.action == 'published')
check:
if: always()
name: check-release-linux
needs:
- build-wheel
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}