Skip to content

[do not merge] debug maturin ci for aarch64 linux #3

[do not merge] debug maturin ci for aarch64 linux

[do not merge] debug maturin ci for aarch64 linux #3

Workflow file for this run

# This file is autogenerated by maturin v1.7.1
# To update, run
#
# maturin generate-ci github --pytest
#
# Modified by hand to use PyPI's Trusted Publishing:
# https://www.maturin.rs/distribution#using-pypis-trusted-publishing
# Also to change when the workflow is triggered (should be on new release)
# and remove unused target platforms.
name: CI
on:
pull_request:
release:
types:
- created
permissions:
contents: read
jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist
- name: pytest
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
shell: bash
run: |
set -e
python3 -m venv .venv
source .venv/bin/activate
pip install codecov_rs --find-links dist --force-reinstall
pip install pytest
pytest
- name: pytest
if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.platform.target }}
distro: ubuntu22.04
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip pytest
run: |
set -e
ls -lah dist
pip3 install codecov_rs --find-links dist --force-reinstall
pytest