diff --git a/eng/install-native-dependencies.sh b/eng/install-native-dependencies.sh index 9e80c57dfcad..d8fd73151d20 100644 --- a/eng/install-native-dependencies.sh +++ b/eng/install-native-dependencies.sh @@ -10,15 +10,30 @@ if [ "$1" = "Linux" ]; then exit 1; fi elif [ "$1" = "OSX" ]; then - brew install icu4c openssl - if [ "$?" != "0" ]; then - exit 1; - fi - brew link --force icu4c - if [ "$?" != "0"]; then - exit 1; + if [ -x "$(command -v brew)" ]; then + brew install icu4c openssl + + if [ "$?" != "0" ]; then + exit 1; + fi + brew link --force icu4c + if [ "$?" != "0"]; then + exit 1; + fi + else + PROC_COUNT=`getconf _NPROCESSORS_ONLN` + mkdir /tmp/icu_build + pushd /tmp/icu_build + pwd + curl -O http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz + tar xzf icu4c-58_2-src.tgz + cd icu/source + ls + ./configure + make -j ${PROC_COUNT} + sudo make install fi -else + else echo "Must pass \"Linux\" or \"OSX\" as first argument." exit 1 fi diff --git a/eng/xplat-job.yml b/eng/xplat-job.yml index b2d04df5374f..c466d8a2ac93 100644 --- a/eng/xplat-job.yml +++ b/eng/xplat-job.yml @@ -20,11 +20,13 @@ jobs: dependsOn: ${{ parameters.dependsOn }} queue: - ${{ if eq(parameters.osGroup, 'Linux') }}: + ${{ if and(eq(parameters.osGroup, 'Linux'), ne(variables['System.TeamProject'], 'public')) }}: name: Hosted Ubuntu 1604 - ${{ if and(eq(parameters.osGroup, 'Windows_NT'), ne(variables['System.TeamProject'], 'public')) }}: + ${{ if and(eq(parameters.osGroup, 'Linux'), ne(variables['System.TeamProject'], 'public')) }}: + name: dnceng-linux-internal-temp + ${{ if and(eq(parameters.osGroup, 'OSX'), ne(variables['System.TeamProject'], 'public')) }}: name: Hosted Mac Internal - ${{ if and(eq(parameters.osGroup, 'Windows_NT'), eq(variables['System.TeamProject'], 'public')) }}: + ${{ if and(eq(parameters.osGroup, 'OSX'), eq(variables['System.TeamProject'], 'public')) }}: name: Hosted MacOS ${{ if and(eq(parameters.osGroup, 'Windows_NT'), ne(variables['System.TeamProject'], 'public')) }}: name: dotnet-internal-temp