Skip to content

Commit

Permalink
Fix appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Jan 5, 2016
1 parent 500444a commit fcf1b86
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
platform:
- x64
- x86
os: MinGW
environment:
matrix:
Expand All @@ -10,17 +11,21 @@ install:
- if "%PLATFORM%" == "x86" SET RUST_PLATFORM=i686-pc-windows-gnu
- if "%PLATFORM%" == "x64" SET RUST_PLATFORM=x86_64-pc-windows-gnu
- if "%PLATFORM%" == "x86" SET MSYSTEM=MINGW32
- if "%PLATFORM%" == "x64" SET "PATH=C:\msys64\usr\bin;C:\msys64\mingw32\bin;%PATH%"
- if "%PLATFORM%" == "x86" SET PATH=C:\msys64\mingw32\bin;C:\msys64\usr\bin;%PATH%
- if "%PLATFORM%" == "x64" SET MSYSTEM=MINGW64
- if "%PLATFORM%" == "x64" SET "PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%"
- if "%PLATFORM%" == "x64" SET PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%

- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:RUST_PLATFORM}.exe" -FileName rust-installer.exe
- rust-installer.exe /VERYSILENT /NORESTART /COMPONENTS="rust,cargo,std" /DIR="C:\Rust"
- rust-installer.exe /VERYSILENT /NORESTART /DIR="C:\Rust"
- del /Q C:\Rust\bin\rustlib\%RUST_PLATFORM%\bin
- SET PATH=%PATH%;C:\Rust\bin
- rustc -V
- cargo -V
- if "%PLATFORM%" == "x64" C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-gtk3"
- if "%PLATFORM%" == "x86" C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-gtk3"
- C:\msys64\usr\bin\bash -lc "gcc --version"
- C:\msys64\usr\bin\bash -lc "which gcc"
- C:\msys64\usr\bin\bash -lc "which ld"

build_script:
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && cargo build --verbose"
Expand Down

0 comments on commit fcf1b86

Please sign in to comment.