Skip to content

Commit

Permalink
enable WITH_AUTHENTICATION_CLIENT_PLUGINS on macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jul 12, 2024
1 parent 5833afc commit ab85cd8
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/build-mysql-darwin-macos14.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,29 @@ echo "::group::build MySQL"
cd "$RUNNER_TEMP"
mkdir build
cd build
cmake "../mysql-server-mysql-$MYSQL_VERSION" \
-DCOMPILATION_COMMENT="shogo82148/actions-setup-mysql@v$ACTION_VERSION" \
-DDOWNLOAD_BOOST=1 -DWITH_BOOST=../boost \
-DWITH_ROCKSDB_LZ4=OFF -DWITH_ROCKSDB_BZip2=OFF -DWITH_ROCKSDB_Snappy=OFF -DWITH_ROCKSDB_ZSTD=OFF \
-DWITH_UNIT_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DWITH_SSL="$PREFIX"
if [[ "$MYSQL_VERSION" =~ ^([1-9][0-9][.]|9[.]) ]]; then # MySQL 9.0 or later
cmake "../mysql-server-mysql-$MYSQL_VERSION" \
-DCOMPILATION_COMMENT="shogo82148/actions-setup-mysql@v$ACTION_VERSION" \
-DWITH_UNIT_TESTS=0 \
-DWITH_AUTHENTICATION_CLIENT_PLUGINS=1 \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DWITH_SSL="$PREFIX"
elif [[ "$MYSQL_VERSION" =~ ^8[.] ]]; then # MySQL 8.0
cmake "../mysql-server-mysql-$MYSQL_VERSION" \
-DCOMPILATION_COMMENT="shogo82148/actions-setup-mysql@v$ACTION_VERSION" \
-DDOWNLOAD_BOOST=1 -DWITH_BOOST=../boost \
-DWITH_UNIT_TESTS=0 \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DWITH_SSL="$PREFIX"
else
cmake "../mysql-server-mysql-$MYSQL_VERSION" \
-DCOMPILATION_COMMENT="shogo82148/actions-setup-mysql@v$ACTION_VERSION" \
-DDOWNLOAD_BOOST=1 -DWITH_BOOST=../boost \
-DWITH_ROCKSDB_LZ4=0 -DWITH_ROCKSDB_BZip2=0 -DWITH_ROCKSDB_Snappy=0 -DWITH_ROCKSDB_ZSTD=0 \
-DWITH_UNIT_TESTS=0 \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DWITH_SSL="$PREFIX"
fi
make "-j$JOBS"
)
echo "::endgroup::"
Expand Down

0 comments on commit ab85cd8

Please sign in to comment.