Skip to content

Commit

Permalink
Fix mysql instalation on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Mar 5, 2021
1 parent 4ddaeb0 commit d856d35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ jobs:
brew services start mysql &&
brew services stop mysql;sleep 3;brew services start mysql &&
sleep 2 &&
/usr/local/Cellar/mysql/5.7.32/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot
/usr/local/Cellar/mysql@5.7/5.7.32/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot
echo 'MYSQL_DATABASE_URL=mysql://root@localhost/diesel_test' >> $GITHUB_ENV
echo 'MYSQL_EXAMPLE_DATABASE_URL=mysql://root@localhost/diesel_example' >> $GITHUB_ENV
echo 'MYSQL_UNIT_TEST_DATABASE_URL=mysql://root@localhost/diesel_unit_test' >> $GITHUB_ENV
echo 'MYSQLCLIENT_LIB_DIR=/usr/local/Cellar/mysql/8.0.19_1/lib' >> $GITHUB_ENV
echo 'MYSQLCLIENT_LIB_DIR=/usr/local/opt/[email protected]/lib' >> $GITHUB_ENV
echo 'PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"' >> $GITHUB_ENV
- name: Install sqlite (Windows)
if: runner.os == 'Windows' && matrix.backend == 'sqlite'
Expand Down Expand Up @@ -345,7 +346,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --features="sqlite mysql postgres"
args: --manifest-path=diesel/Cargo.toml
- name: Run clippy
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit d856d35

Please sign in to comment.