From 7f117b5ddc2f7853e361df65fff16822f3e525e3 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 16 Mar 2022 12:01:43 +0800 Subject: [PATCH] Try to reproduce #2229 --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ae1883f..6e0cd74a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -247,6 +247,18 @@ jobs: manylinux: auto args: --release -i python3.9 --no-sdist -m examples/maturin-starter/Cargo.toml + - run: sudo rm -rf examples/maturin-starter/target + if: ${{ matrix.platform.os == 'ubuntu-latest' && matrix.python-version == '3.9' }} + - name: Test cross compile to same architecture + 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: x86_64-unknown-linux-gnu + manylinux: auto + args: --release -i python3.9 --no-sdist -m examples/maturin-starter/Cargo.toml + - name: Test cross compilation if: ${{ matrix.platform.os == 'macos-latest' && matrix.python-version == '3.9' }} uses: messense/maturin-action@v1