From 2f01274557d1c8b3e28f5864214aad5d39709f1f Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Thu, 27 Jun 2019 10:31:58 -0400 Subject: [PATCH] CI Improvements (#2928) * Switch to Windows 2019 * use macOS 10.14 and do not install Rust when not not necessary, fix rust_flags --- .ci/install.yml | 9 ++------- azure-pipelines.yml | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.ci/install.yml b/.ci/install.yml index 29c54b0307..e3da8653f6 100644 --- a/.ci/install.yml +++ b/.ci/install.yml @@ -1,11 +1,8 @@ steps: - script: | - curl -sSf -o rustup-init.exe https://win.rustup.rs - rustup-init.exe -y - echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin" git apply .ci/win.patch choco install -y llvm - displayName: Windows Install Rust + displayName: Windows Install LLVM condition: eq( variables['Agent.OS'], 'Windows_NT' ) - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y @@ -13,9 +10,7 @@ steps: displayName: macOS Install Rust condition: eq( variables['Agent.OS'], 'Darwin' ) - script: | - curl https://sh.rustup.rs -sSf | sh -s -- -y sudo apt-get update -yqq sudo apt-get install -yqq --no-install-recommends libncursesw5-dev - echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" - displayName: Linux Install Rust and Dependencies + displayName: Linux Install Dependencies condition: eq( variables['Agent.OS'], 'Linux' ) \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5c041509a8..49b3a7cbae 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,7 +26,7 @@ pr: variables: RUST_BACKTRACE: '1' - RUST_FLAGS: '-C debug-assertions' + RUSTFLAGS: '-C debug-assertions' jobs: - job: linux @@ -55,7 +55,7 @@ jobs: - template: '.ci/release.yml' - job: macos pool: - vmImage: macos-10.13 + vmImage: macos-10.14 strategy: matrix: test: @@ -69,7 +69,7 @@ jobs: - template: '.ci/release.yml' - job: windows pool: - vmImage: vs2017-win2016 + vmImage: windows-2019 strategy: matrix: test: