From 7d7b5f92a220a75f3bd0e45c8323e61a1dae4d67 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Wed, 27 May 2020 14:29:54 +0800 Subject: [PATCH] Update AppVeyor --- appveyor.yml | 76 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 66 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 9d0a4f4..b00f09f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,13 +1,69 @@ -install: - - ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-1.28.0-i686-pc-windows-gnu.exe' - - rust-1.28.0-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin - - SET PATH=%PATH%;C:\MinGW\bin - - rustc -V - - cargo -V - - git submodule update --init --recursive +clone_depth: 1 + +branches: + only: + - master -build: false +environment: + LLVM_VERSION: 9.0.1 + PLATFORM: x64 + matrix: + - channel: stable + target: i686-pc-windows-msvc + - channel: stable + target: x86_64-pc-windows-msvc + - channel: stable + target: i686-pc-windows-gnu + - channel: stable + target: x86_64-pc-windows-gnu + - channel: beta + target: i686-pc-windows-msvc + - channel: beta + target: x86_64-pc-windows-msvc + - channel: nightly + target: i686-pc-windows-msvc + type: msvc + - channel: nightly + target: x86_64-pc-windows-msvc + type: msvc + - channel: beta + target: i686-pc-windows-gnu + - channel: beta + target: x86_64-pc-windows-gnu + - channel: nightly + target: i686-pc-windows-gnu + type: gnu + - channel: nightly + target: x86_64-pc-windows-gnu + type: gnu +install: + - if %PLATFORM% == x86 (set RUST_PLATFORM=i686&set MINGW_BITS=32) else (set RUST_PLATFORM=x86_64&set MINGW_BITS=64) + - ps: >- + If ($env:target -eq 'x86_64-pc-windows-gnu') { + $env:PATH += ';C:\msys64\mingw64\bin' + } ElseIf ($env:target -eq 'i686-pc-windows-gnu') { + $env:PATH += ';C:\msys64\mingw32\bin' + } + - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init -yv --default-toolchain %channel% --default-host %target% + - set PATH=%PATH%;%USERPROFILE%\.cargo\bin + - rustc -vV + - cargo -vV + # Install LLVM for GNU + - if %type%==gnu set PATH=C:\msys64\mingw%MINGW_BITS%\bin;C:\msys64\usr\bin;%PATH% + - if %type%==gnu set "MINGW_URL=http://repo.msys2.org/mingw/%RUST_PLATFORM%/mingw-w64-%RUST_PLATFORM%" + - if %type%==gnu set "URL_VER=%LLVM_VERSION%-1-any.pkg.tar.xz" + - if %type%==gnu bash -lc "pacman -U --noconfirm $MINGW_URL-clang-$URL_VER $MINGW_URL-llvm-$URL_VER" + - if %type%==gnu bash -lc "clang --version" + # Use preinstalled LLVM for MSVC + - if %type%==msvc set PATH=%PATH%;C:\Program Files\LLVM\bin + - if %type%==msvc where clang + - if %type%==msvc clang --version + +build_script: + - cargo build -vv test_script: - - cargo test --verbose + - cargo test -vv +deploy: off +