X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=appveyor.yml;h=2d8704a703bcd6655e7fb2c30215d1306dfec939;hb=4d984dc6e65575fb79f835c10467b50854549d2e;hp=94f9500ab85f253205072422bd11d578b5b364fc;hpb=205db6f68600d76a9b81029d9a62e9d0df5c96a3;p=rust.git diff --git a/appveyor.yml b/appveyor.yml index 94f9500ab85..2d8704a703b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,16 +7,24 @@ environment: #- TARGET: x86_64-pc-windows-gnu - TARGET: x86_64-pc-windows-msvc +branches: + # Only build AppVeyor on r+, try and the master branch + only: + - auto + - try + - master + install: - curl -sSf -o rustup-init.exe https://win.rustup.rs/ - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - # https://support.microsoft.com/en-us/help/2524009/error-running-command-shell-scripts-that-include-parentheses - - if defined GITHUB_TOKEN del rust-toolchain - - if defined GITHUB_TOKEN (cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed") - - if defined GITHUB_TOKEN rustup-toolchain-install-master -f -n master --github-token %GITHUB_TOKEN% - - if defined GITHUB_TOKEN rustup default master - - if defined GITHUB_TOKEN set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin + - git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt + - set /p RUSTC_HASH=