File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,11 +277,17 @@ jobs:
277277 env :
278278 XWIN_ARCH : x86_64
279279 run : |
280+ set -ex
280281 sudo apt-get install -y mingw-w64 llvm
281282 rustup target add x86_64-pc-windows-gnu x86_64-pc-windows-msvc
282283 python -m pip install cargo-xwin
284+ # abi3
283285 cargo build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-gnu
284286 cargo xwin build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-msvc
287+ # non-abi3
288+ export PYO3_CROSS_PYTHON_VERSION=3.9
289+ cargo build --manifest-path examples/maturin-starter/Cargo.toml --features generate-import-lib --target x86_64-pc-windows-gnu
290+ cargo xwin build --manifest-path examples/maturin-starter/Cargo.toml --features generate-import-lib --target x86_64-pc-windows-msvc
285291 - name : Test cross compile to Windows with maturin
286292 if : ${{ matrix.platform.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
287293 uses : messense/maturin-action@v1
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ crate-type = ["cdylib"]
1111pyo3 = { path = " ../../" , features = [" extension-module" ] }
1212
1313[features ]
14- abi3 = [" pyo3/abi3-py37" , " pyo3/generate-import-lib" ]
14+ abi3 = [" pyo3/abi3-py37" , " generate-import-lib" ]
15+ generate-import-lib = [" pyo3/generate-import-lib" ]
1516
1617[workspace ]
You can’t perform that action at this time.
0 commit comments