Merge pull request #1700 from messense/cross-compile
Add cross compilation test in CI
This commit is contained in:
commit
11f1a1d6f0
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue