Skip to content

Commit 9379d3b

Browse files
committed
ping brew mysql to 8.0
Homebrew/homebrew-core#180498
1 parent 4a29c28 commit 9379d3b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/compatibility-test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ jobs:
233233
- name: Install mysql in macos
234234
if: ${{ matrix.os == 'macos-14' }}
235235
run: |
236-
brew install mysql-client
237-
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
236+
brew install mysql-client@8.0
237+
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@8.0/lib/pkgconfig"
238238
pip3 install mysqlclient --break-system-packages
239239
- name: Run test on ${{ matrix.os }}
240240
run: |
@@ -308,8 +308,8 @@ jobs:
308308
- name: Install mysql in macos
309309
if: ${{ matrix.os == 'macos-14' }}
310310
run: |
311-
brew install mysql-client
312-
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
311+
brew install mysql-client@8.0
312+
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@8.0/lib/pkgconfig"
313313
pip3 install mysqlclient --break-system-packages
314314
- name: Run test on ${{ matrix.os }}
315315
run: |
@@ -424,10 +424,10 @@ jobs:
424424
- name: Install mysql on macos
425425
if: ${{ matrix.os == 'macos-14' }}
426426
run: |
427-
brew install mysql
427+
brew install mysql@8.0
428428
cd example_code/ruby
429429
# https://github.com/Homebrew/homebrew-core/issues/130258
430-
gem install mysql2 -- --with-mysql-dir=$(brew --prefix mysql)
430+
gem install mysql2 -- --with-mysql-dir=$(brew --prefix mysql@8.0)
431431
ruby ConnectTest.rb ${{needs.setup.outputs.TIDB_CLOUD_HOST}} ${{needs.setup.outputs.TIDB_CLOUD_USER}} ${{ secrets.TIDB_CLOUD_PASSWORD }}
432432
- name: Run test on ubuntu
433433
if: ${{ matrix.os == 'ubuntu-24.04' }}
@@ -479,8 +479,8 @@ jobs:
479479
- name: Run test on macos
480480
if: ${{ matrix.os == 'macos-14' }}
481481
run: |
482-
brew install mysql-client
483-
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
482+
brew install mysql-client@8.0
483+
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@8.0/lib/pkgconfig"
484484
flags=$(pkg-config --cflags --libs mysqlclient)
485485
cd example_code/cpp
486486
eval "g++ ConnectTest.cpp -o test $flags"

0 commit comments

Comments
 (0)