Skip to content

Commit

Permalink
Merge pull request #1700 from messense/cross-compile
Browse files Browse the repository at this point in the history
Add cross compilation test in CI
  • Loading branch information
davidhewitt authored Jun 27, 2021
2 parents b58fe20 + 3e851bb commit 11f1a1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ jobs:
env:
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:
CARGO_TERM_VERBOSE: true
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
Expand Down

0 comments on commit 11f1a1d

Please sign in to comment.