-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
during deploy, non-deploy branches should NOP
- Loading branch information
Jorge Aparicio
committed
Oct 16, 2016
1 parent
59adf98
commit 1045c7d
Showing
6 changed files
with
70 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
$Env:HOST = $Env:TARGET | ||
If ($Env:APPVEYOR_REPO_TAG -eq 'false' -Or $Env:RUST_VERSION -eq $Env:DEPLOY_VERSION) { | ||
$Env:HOST = $Env:TARGET | ||
|
||
If ($Env:TARGET -Match 'gnu') { | ||
if ($Env:TARGET -Match 'x86_64') { | ||
$Env:PATH += ';C:\msys64\mingw64\bin' | ||
} else { | ||
$Env:PATH += ';C:\msys64\mingw32\bin' | ||
If ($Env:TARGET -Match 'gnu') { | ||
if ($Env:TARGET -Match 'x86_64') { | ||
$Env:PATH += ';C:\msys64\mingw64\bin' | ||
} else { | ||
$Env:PATH += ';C:\msys64\mingw32\bin' | ||
} | ||
} ElseIf ($Env:TARGET -Match 'i586') { | ||
$Env:HOST = 'i686-pc-windows-msvc' | ||
} | ||
} ElseIf ($Env:TARGET -Match 'i586') { | ||
$Env:HOST = 'i686-pc-windows-msvc' | ||
} | ||
|
||
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls12' | ||
Start-FileDownload 'https://win.rustup.rs' 'rustup-init.exe' | ||
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls12' | ||
Start-FileDownload 'https://win.rustup.rs' 'rustup-init.exe' | ||
|
||
.\rustup-init --default-host $Env:HOST --default-toolchain $Env:RUST_VERSION -y | ||
.\rustup-init --default-host $Env:HOST --default-toolchain $Env:RUST_VERSION -y | ||
|
||
$Env:PATH = 'C:\Users\appveyor\.cargo\bin;' + $Env:PATH | ||
$Env:PATH = 'C:\Users\appveyor\.cargo\bin;' + $Env:PATH | ||
|
||
If ($Env:TARGET -ne $Env:HOST) { | ||
rustup target add $Env:TARGET | ||
} | ||
If ($Env:TARGET -ne $Env:HOST) { | ||
rustup target add $Env:TARGET | ||
} | ||
|
||
rustc -Vv | ||
rustc -Vv | ||
|
||
cargo -V | ||
cargo -V | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters