Skip to content

Commit

Permalink
Add a non-abi3 windows wheel cross compiling test
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 16, 2022
1 parent 6c9a92d commit 69246ff
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,19 @@ jobs:
cargo run -- build --no-sdist -i python3.9 -m test-crates/pyo3-mixed/Cargo.toml --target aarch64-apple-darwin --zig
# Check wheels with twine
twine check --strict test-crates/pyo3-mixed/target/wheels/*.whl
- name: test cross compiling windows abi3 wheel
- name: test cross compiling windows wheel
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y mingw-w64 llvm
rustup target add x86_64-pc-windows-gnu
rustup target add x86_64-pc-windows-msvc
# abi3
cargo run -- build --no-sdist -m test-crates/pyo3-pure/Cargo.toml --target x86_64-pc-windows-gnu
cargo run -- build --no-sdist -m test-crates/pyo3-pure/Cargo.toml --target x86_64-pc-windows-msvc
# no-abi3
cargo run -- build --no-sdist -i python3.9 -m test-crates/pyo3-mixed/Cargo.toml --target x86_64-pc-windows-msvc
- name: test compiling with PYO3_CONFIG_FILE
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions test-crates/pyo3-mixed/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test-crates/pyo3-mixed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "Implements a dummy function combining rust and python"
edition = "2018"

[dependencies]
pyo3 = { version = "0.16.5", features = ["extension-module"] }
pyo3 = { version = "0.16.5", features = ["extension-module", "generate-import-lib"] }

[lib]
name = "pyo3_mixed"
Expand Down

0 comments on commit 69246ff

Please sign in to comment.