Merge pull request #116 from javierhonduco/add-llvm-symbolizer #559
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
mysql: ["5.7", "8.0"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup MySQL | |
run: | | |
brew install mysql@${{ matrix.mysql }} | |
(unset CI; brew postinstall mysql@${{ matrix.mysql }}) | |
brew services start mysql@${{ matrix.mysql }} | |
sleep 5 | |
$(brew --prefix mysql@${{ matrix.mysql }})/bin/mysql -uroot -e 'CREATE DATABASE test' | |
- name: Build | |
run: CFLAGS="-I$(brew --prefix openssl@1.1)/include" LDFLAGS="-L$(brew --prefix openssl@1.1)/lib" make all test/test | |
- name: test | |
run: test/test | |
test-ruby: | |
name: Test Ruby | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
mysql: ["5.7", "8.0"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup MySQL | |
run: | | |
brew install mysql@${{ matrix.mysql }} | |
(unset CI; brew postinstall mysql@${{ matrix.mysql }}) | |
brew services start mysql@${{ matrix.mysql }} | |
sleep 5 | |
$(brew --prefix mysql@${{ matrix.mysql }})/bin/mysql -uroot -e 'CREATE DATABASE test' | |
$(brew --prefix mysql@${{ matrix.mysql }})/bin/mysql -uroot < docker-entrypoint-initdb.d/native_password_user.sql | |
$(brew --prefix mysql@${{ matrix.mysql }})/bin/mysql -uroot < docker-entrypoint-initdb.d/x509_user.sql | |
- name: Install dependencies | |
run: | | |
cd contrib/ruby | |
bundle --without benchmark | |
- name: Run tests | |
run: | | |
cd contrib/ruby | |
bundle exec rake |