Skip to content

Commit

Permalink
Merge pull request #919 from messense/cargo-xwin
Browse files Browse the repository at this point in the history
Integrate `cargo-xwin` for cross compiling to Windows MSVC targets
  • Loading branch information
messense authored May 16, 2022
2 parents 114895c + 69246ff commit c1750ff
Show file tree
Hide file tree
Showing 7 changed files with 802 additions and 26 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +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
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
Loading

0 comments on commit c1750ff

Please sign in to comment.