Merge pull request #1700 from messense/cross-compile

Add cross compilation test in CI
This commit is contained in:
David Hewitt 2021-06-27 09:18:27 +01:00 committed by GitHub
commit 11f1a1d6f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,6 +183,16 @@ jobs:
env: env:
TOX_TESTENV_PASSENV: "CARGO_BUILD_TARGET" TOX_TESTENV_PASSENV: "CARGO_BUILD_TARGET"
- name: Test cross compilation
if: ${{ matrix.platform.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
uses: messense/maturin-action@v1
env:
PYO3_CROSS_LIB_DIR: /opt/python/cp39-cp39/lib
with:
target: aarch64-unknown-linux-gnu
manylinux: auto
args: --release -i python3.9 --no-sdist -m examples/maturin-starter/Cargo.toml
env: env:
CARGO_TERM_VERBOSE: true CARGO_TERM_VERBOSE: true
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }} CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}