From ee9e6aa9607b5e90e5486246e3a9870b4b357c5a Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 10 Apr 2022 23:16:04 +0800 Subject: [PATCH] Add a windows msvc cross compilation test --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f2705eb771..e43bfbb18ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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