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' }}