Skip to content

Commit

Permalink
Add a windows msvc cross compilation test
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Apr 10, 2022
1 parent 8368c62 commit ee9e6aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -273,10 +273,13 @@ jobs:

- name: Test cross compile to Windows
if: ${{ matrix.platform.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
env:
CARGO_X86_64_PC_WINDOWS_MSVC_LINKER: rust-lld
run: |
sudo apt-get install -y mingw-w64
rustup target add x86_64-pc-windows-gnu
sudo apt-get install -y mingw-w64 llvm
rustup target add x86_64-pc-windows-gnu x86_64-pc-windows-msvc
cargo build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-gnu
cargo build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-msvc
- name: Test cross compile to Windows with maturin
if: ${{ matrix.platform.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
uses: messense/maturin-action@v1
Expand Down

0 comments on commit ee9e6aa

Please sign in to comment.