Skip to content

Commit

Permalink
Update AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed May 27, 2020
1 parent 360a34d commit 7d7b5f9
Showing 1 changed file with 66 additions and 10 deletions.
76 changes: 66 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7d7b5f9

Please sign in to comment.