]> git.lizzy.rs Git - rust.git/blobdiff - appveyor.yml
macos: symlink rustc dev libs to /usr/local/lib
[rust.git] / appveyor.yml
index fb0b326c713b0c1c14d2c791b256dca8f27249a9..829c781eb0874ae86b4dc7d0d080bb4925349705 100644 (file)
@@ -8,21 +8,25 @@ environment:
         - TARGET: x86_64-pc-windows-msvc
 
 branches:
-    # Don't build these branches
-    except:
-        # Used by bors
-        - trying.tmp
-        - staging.tmp
+    # Only build AppVeyor on r+ and try branch
+    only:
+      - auto
+      - try
+
+cache:
+    - '%USERPROFILE%\.cargo'
+after_test:
+    - cargo install -Z install-upgrade cargo-cache --debug
+    - cargo cache --autoclean
 
 install:
     - curl -sSf -o rustup-init.exe https://win.rustup.rs/
-    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
+    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
     - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
-    - git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt
-    - set /p RUSTC_HASH=<rustc-hash.txt
     - del rust-toolchain
-    - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
-    - rustup-toolchain-install-master %RUSTC_HASH% -f -n master
+    - cargo install -Z install-upgrade rustup-toolchain-install-master
+    - rustup-toolchain-install-master -f -n master
+    - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
     - rustup default master
     - set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
     - rustc -V