File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ parameters:
3
3
matrix :
4
4
Production : {}
5
5
pool :
6
- name : DotNetCore-Mac
7
- demands : Agent.OS -equals Darwin
6
+ name : Hosted macOS
8
7
9
8
jobs :
10
9
- job : ${{ parameters.job }}
36
35
( set -o posix; set )
37
36
displayName: Print all variables in environment
38
37
38
+ # Install native dependencies not present in hosted pool.
39
+ - script : |
40
+ setvariable() {
41
+ (
42
+ set +x
43
+ echo "Setting '$1' to '$2'"
44
+ echo "##vso[task.setvariable variable=$1;]$2"
45
+ )
46
+ }
47
+ set -x
48
+ # Based on https://github.com/sbomer/coreclr/blob/dc2fa1b96415f87d694e5b6e751e38ca6fbd09a1/unix-pipeline.yml#L36-L39
49
+ brew install icu4c openssl
50
+ brew link --force icu4c
51
+ # Follow https://github.com/dotnet/corefx/blob/master/Documentation/building/unix-instructions.md#user-content-macos
52
+ brew install cmake pkgconfig openssl
53
+ brew_openssl_paths=$(brew info openssl | cut -d ' ' -f 1 | grep '^/.*/openssl/')
54
+ # Use 'for' to get last/latest openssl install dir.
55
+ for openssl_path in $brew_openssl_paths; do :; done
56
+ setvariable OPENSSL_ROOT_DIR "$openssl_path"
57
+ displayName: Install native dependencies
58
+
39
59
- template : ../steps/init-submodules-sh.yml
40
60
41
61
# Build source-build.
You can’t perform that action at this time.
0 commit comments