@@ -104,6 +104,25 @@ functions:
104
104
cp ./bin/mongocrypt.dll c:/libmongocrypt/bin
105
105
cp ./include/mongocrypt/*.h c:/libmongocrypt/include
106
106
export PATH=$PATH:/cygdrive/c/libmongocrypt/bin
107
+ elif [ "Darwin" = "$(uname -s)" ]; then
108
+ # TODO (GODRIVER-2442): Once libmongocrypt compiles on macOS 10.15, remove this elif block.
109
+ echo "fetching build for Darwin ... begin"
110
+ mkdir -p install/libmongocrypt
111
+ mkdir libmongocrypt-all
112
+ cd libmongocrypt-all
113
+ # LIBMONGOCRYPT_COMMIT is for 1.5.0-rc1.
114
+ LIBMONGOCRYPT_COMMIT="6e100b087376d448534cb2ad1b4dc50cb7cbc1f6"
115
+ # The following URL is published from the upload-all task in the libmongocrypt Evergreen project.
116
+ curl https://mciuploads.s3.amazonaws.com/libmongocrypt/all/master/$LIBMONGOCRYPT_COMMIT/libmongocrypt-all.tar.gz -o libmongocrypt-all.tar.gz
117
+ tar -xf libmongocrypt-all.tar.gz
118
+ cd ..
119
+ mv libmongocrypt-all/macos/include ./install/libmongocrypt
120
+ mv libmongocrypt-all/macos/lib ./install/libmongocrypt
121
+ rm -rf libmongocrypt-all
122
+ rm libmongocrypt-all.tar.gz
123
+ # Fix prefix in pkg-config prefix path.
124
+ sed -i "" -E "s+prefix=.*+prefix=$(pwd)/install/libmongocrypt+" ./install/libmongocrypt/lib/pkgconfig/libmongocrypt.pc
125
+ echo "fetching build for Darwin ... end"
107
126
else
108
127
# TODO (GODRIVER-2436): do not use pre-release of libmongocrypt.
109
128
git clone https://github.com/mongodb/libmongocrypt --branch 1.5.0-rc1
@@ -2001,8 +2020,8 @@ axes:
2001
2020
# tests use mongocryptd instead.
2002
2021
SKIP_CRYPT_SHARED_LIB_DOWNLOAD : " true"
2003
2022
- id : " osx-go-1-17"
2004
- display_name : " MacOS 10.14 "
2005
- run_on : macos-1014
2023
+ display_name : " MacOS 10.15 "
2024
+ run_on : macos-1015
2006
2025
variables :
2007
2026
GO_DIST : " /opt/golang/go1.17"
2008
2027
PYTHON3_BINARY : python3
@@ -2027,8 +2046,8 @@ axes:
2027
2046
GO_DIST : " /opt/golang/go1.17"
2028
2047
PYTHON3_BINARY : " /opt/python/3.8/bin/python3"
2029
2048
- id : " osx-go-1-17"
2030
- display_name : " MacOS 10.14 "
2031
- run_on : macos-1014
2049
+ display_name : " MacOS 10.15 "
2050
+ run_on : macos-1015
2032
2051
variables :
2033
2052
GO_DIST : " /opt/golang/go1.17"
2034
2053
PYTHON3_BINARY : python3
@@ -2063,8 +2082,8 @@ axes:
2063
2082
GO_DIST : " /opt/golang/go1.17"
2064
2083
PYTHON3 : python3
2065
2084
- id : " osx-go-1-17"
2066
- display_name : " MacOS 10.14 "
2067
- run_on : macos-1014
2085
+ display_name : " MacOS 10.15 "
2086
+ run_on : macos-1015
2068
2087
variables :
2069
2088
GO_DIST : " /opt/golang/go1.17"
2070
2089
SKIP_ECS_AUTH_TEST : true
0 commit comments