Speed up Ninja downloading on Mac.

This commit is contained in:
Pietro Gagliardi 2019-04-05 11:20:15 -04:00
parent 15ffbeaa8a
commit 47948df5de
2 changed files with 13 additions and 3 deletions

View File

@ -336,9 +336,7 @@ jobs:
steps: steps:
- template: azure-pipelines/setup-python3.yml - template: azure-pipelines/setup-python3.yml
- template: azure-pipelines/install-latest-meson.yml - template: azure-pipelines/install-latest-meson.yml
- script: | - template: azure-pipelines/darwin-install-ninja.yml
brew install ninja
displayName: 'Install Dependencies'
- template: azure-pipelines/configure.yml - template: azure-pipelines/configure.yml
parameters: parameters:
beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.12 Path) beforeConfigure: export SDKROOT=$(xcodebuild -version -sdk macosx10.12 Path)

View File

@ -0,0 +1,12 @@
# 5 april 2019
# because brew install is also slow (it runs an update task first)
steps:
- script: |
sudo mkdir /opt/ninja
pushd /opt/ninja
sudo wget https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-mac.zip
sudo unzip ninja-mac.zip
popd
echo '##vso[task.prependpath]/opt/ninja'
displayName: 'Install Ninja'