Install cargo-xwin from PyPI to speedup CI

This commit is contained in:
messense 2022-04-12 17:04:40 +08:00
parent cb48557601
commit 57412f1a29
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ jobs:
run: |
sudo apt-get install -y mingw-w64 llvm
rustup target add x86_64-pc-windows-gnu x86_64-pc-windows-msvc
which cargo-xwin > /dev/null || cargo install cargo-xwin
python -m pip install cargo-xwin
cargo build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-gnu
cargo xwin build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-msvc
- name: Test cross compile to Windows with maturin