Skip to content

Commit 97afad2

Browse files
committed
macos brew install of mongo c driver does not work in github workflow
[docker_verify]
1 parent aa259ee commit 97afad2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci-macos.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,27 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
#brew unlink bazel
26-
brew install ossp-uuid libmemcached boost jsoncpp apr apr-util httpd ninja mongo-c-driver
26+
brew install ossp-uuid libmemcached boost jsoncpp apr apr-util httpd ninja
2727
pushd /tmp
2828
wget -q https://ftp.osuosl.org/pub/blfs/conglomeration/unixODBC/unixODBC-2.3.12.tar.gz
2929
tar zxf unixODBC-2.3.12.tar.gz
3030
cd unixODBC-2.3.12
3131
./configure && make && sudo make install
3232
cd /tmp
3333
rm -rf unixODBC-2.3.12
34+
VERSION=1.26.2
35+
wget "https://github.com/mongodb/mongo-c-driver/archive/refs/tags/$VERSION.tar.gz" --output-document="mongo-c-driver-$VERSION.tar.gz"
36+
tar xf "mongo-c-driver-$VERSION.tar.gz"
37+
rm -f "mongo-c-driver-$VERSION.tar.gz"
38+
cd mongo-c-driver-$VERSION/ && mkdir _build && cmake -S . -B _build \
39+
-D ENABLE_EXTRA_ALIGNMENT=OFF \
40+
-D ENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -D ENABLE_TESTS=OFF -D ENABLE_EXAMPLES=OFF \
41+
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
42+
-D BUILD_VERSION="$VERSION" \
43+
-D ENABLE_SSL=OFF \
44+
-D ENABLE_SASL=OFF \
45+
-D ENABLE_MONGOC=ON && cmake --build _build --config RelWithDebInfo --parallel && sudo cmake --install _build
46+
rm -rf "mongo-c-driver-$VERSION"
3447
#if [ -f /usr/local/lib/libssl.dylib ]; then
3548
# sudo mv /usr/local/lib/libssl.dylib /usr/local/lib/libssl_bak.dylib
3649
#fi

0 commit comments

Comments
 (0)