From 5aabcddf335b45ca02f3a1b62e6de7846a2c0efd Mon Sep 17 00:00:00 2001 From: zhangyangyu Date: Mon, 17 Jun 2024 17:57:22 +0800 Subject: [PATCH] fix --- .github/workflows/compatibility-test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compatibility-test.yml b/.github/workflows/compatibility-test.yml index b6d9ded..7ef22f7 100644 --- a/.github/workflows/compatibility-test.yml +++ b/.github/workflows/compatibility-test.yml @@ -496,9 +496,10 @@ jobs: - name: Run test on macos if: ${{ matrix.os == 'macos-14' }} run: | - brew install mysql mysql-client + brew install mysql-client + flags=$(pkg-config --cflags --libs mysqlclient) cd example_code/cpp - g++ ConnectTest.cpp -o test -I/usr/local/include/mysql -lmysqlclient + eval "g++ ConnectTest.cpp -o test $flags" ./test ${{needs.setup.outputs.TIDB_CLOUD_HOST}} ${{needs.setup.outputs.TIDB_CLOUD_USER}} ${{ secrets.TIDB_CLOUD_PASSWORD }} ${{matrix.cert}} - name: Run test on ubuntu if: ${{ matrix.os == 'ubuntu-22.04' }}