Skip to content
Snippets Groups Projects
Commit ab0442cd authored by Alex Crichton's avatar Alex Crichton
Browse files

AppVeyor has MSYS2 installed by default now!

parent 9b5447f1
No related branches found
No related tags found
No related merge requests found
environment: environment:
global:
MSYS2_BASEVER: 20150512
matrix: matrix:
- TARGET: x86_64-pc-windows-gnu - TARGET: x86_64-pc-windows-gnu
MSYS2_ARCH: x86_64
MSYS2_BITS: 64 MSYS2_BITS: 64
MSYSTEM: MINGW64
- TARGET: i686-pc-windows-gnu - TARGET: i686-pc-windows-gnu
MSYS2_ARCH: i686
MSYS2_BITS: 32 MSYS2_BITS: 32
MSYSTEM: MINGW32
- TARGET: x86_64-pc-windows-msvc - TARGET: x86_64-pc-windows-msvc
- TARGET: i686-pc-windows-msvc - TARGET: i686-pc-windows-msvc
install: install:
- ps: ci\msys2.ps1
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
- rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- if defined MSYS2_BITS set PATH=%PATH%;%CD%\msys2\mingw%MSYS2_BITS%\bin - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
- rustc -V - rustc -V
- cargo -V - cargo -V
......
# Installs MSYS2 on AppVeyor builders
If (!${env:MSYS2_ARCH}) {
Exit 0
}
Start-FileDownload `
("http://kent.dl.sourceforge.net/project/msys2/Base/" + `
$env:MSYS2_ARCH + "/msys2-base-" + $env:MSYS2_ARCH + "-" + `
$env:MSYS2_BASEVER + ".tar.xz") `
-FileName "msys2.tar.xz"
7z x msys2.tar.xz
7z x msys2.tar > $nul
Move-Item ("msys" + $env:MSYS2_BITS) msys2
.\msys2\usr\bin\bash.exe -lc ""
.\msys2\usr\bin\bash.exe -lc `
("for i in {1..3}; do " + `
"pacman --noconfirm -Suy mingw-w64-"+ $env:MSYS2_ARCH + "-gcc " + `
"&& break || sleep 15; " + `
"done")
.\msys2\autorebase.bat
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment