Skip to content

Commit

Permalink
ping brew mysql to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu committed Aug 8, 2024
1 parent 4a29c28 commit 9379d3b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/compatibility-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ jobs:
- name: Install mysql in macos
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install mysql-client
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
brew install mysql-client@8.0
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@8.0/lib/pkgconfig"
pip3 install mysqlclient --break-system-packages
- name: Run test on ${{ matrix.os }}
run: |
Expand Down Expand Up @@ -308,8 +308,8 @@ jobs:
- name: Install mysql in macos
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install mysql-client
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
brew install mysql-client@8.0
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@8.0/lib/pkgconfig"
pip3 install mysqlclient --break-system-packages
- name: Run test on ${{ matrix.os }}
run: |
Expand Down Expand Up @@ -424,10 +424,10 @@ jobs:
- name: Install mysql on macos
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install mysql
brew install mysql@8.0
cd example_code/ruby
# https://github.com/Homebrew/homebrew-core/issues/130258
gem install mysql2 -- --with-mysql-dir=$(brew --prefix mysql)
gem install mysql2 -- --with-mysql-dir=$(brew --prefix mysql@8.0)
ruby ConnectTest.rb ${{needs.setup.outputs.TIDB_CLOUD_HOST}} ${{needs.setup.outputs.TIDB_CLOUD_USER}} ${{ secrets.TIDB_CLOUD_PASSWORD }}
- name: Run test on ubuntu
if: ${{ matrix.os == 'ubuntu-24.04' }}
Expand Down Expand Up @@ -479,8 +479,8 @@ jobs:
- name: Run test on macos
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install mysql-client
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
brew install mysql-client@8.0
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@8.0/lib/pkgconfig"
flags=$(pkg-config --cflags --libs mysqlclient)
cd example_code/cpp
eval "g++ ConnectTest.cpp -o test $flags"
Expand Down

0 comments on commit 9379d3b

Please sign in to comment.