|
22 | 22 | matrix:
|
23 | 23 | rust: ["stable", "beta", "nightly"]
|
24 | 24 | backend: ["postgres", "mysql", "sqlite"]
|
25 |
| - os: [ubuntu-latest, macos-latest, macos-14, windows-latest] |
| 25 | + os: [ubuntu-latest, macos-latest, macos-14, windows-2019] |
26 | 26 | runs-on: ${{ matrix.os }}
|
27 | 27 | steps:
|
28 | 28 | - name: Checkout sources
|
@@ -125,23 +125,25 @@ jobs:
|
125 | 125 | - name: Install mysql (MacOS)
|
126 | 126 | if: matrix.os == 'macos-latest' && matrix.backend == 'mysql'
|
127 | 127 | run: |
|
128 |
| - brew install mariadb@10.5 |
129 |
| - /usr/local/opt/mariadb@10.5/bin/mysql_install_db |
130 |
| - /usr/local/opt/mariadb@10.5/bin/mysql.server start |
| 128 | + brew install mariadb@11.3 |
| 129 | + /usr/local/opt/mariadb@11.3/bin/mysql_install_db |
| 130 | + /usr/local/opt/mariadb@11.3/bin/mysql.server start |
131 | 131 | sleep 3
|
132 |
| - /usr/local/opt/[email protected]/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'runner'@'localhost';" -urunner |
133 |
| - echo "DATABASE_URL=mysql://runner@localhost/diesel_test" >> $GITHUB_ENV |
| 132 | + /usr/local/opt/[email protected]/bin/mysqladmin -u runner password diesel |
| 133 | + /usr/local/opt/[email protected]/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'runner'@'localhost';" -urunner |
| 134 | + echo "DATABASE_URL=mysql://runner:diesel@localhost/diesel_test" >> $GITHUB_ENV |
134 | 135 |
|
135 | 136 | - name: Install mysql (MacOS M1)
|
136 | 137 | if: matrix.os == 'macos-14' && matrix.backend == 'mysql'
|
137 | 138 | run: |
|
138 |
| - brew install mariadb@10.5 |
139 |
| - ls /opt/homebrew/opt/mariadb@10.5 |
140 |
| - /opt/homebrew/opt/mariadb@10.5/bin/mysql_install_db |
141 |
| - /opt/homebrew/opt/mariadb@10.5/bin/mysql.server start |
| 139 | + brew install mariadb@11.3 |
| 140 | + ls /opt/homebrew/opt/mariadb@11.3 |
| 141 | + /opt/homebrew/opt/mariadb@11.3/bin/mysql_install_db |
| 142 | + /opt/homebrew/opt/mariadb@11.3/bin/mysql.server start |
142 | 143 | sleep 3
|
143 |
| - /opt/homebrew/opt/[email protected]/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'runner'@'localhost';" -urunner |
144 |
| - echo "DATABASE_URL=mysql://runner@localhost/diesel_test" >> $GITHUB_ENV |
| 144 | + /opt/homebrew/opt/[email protected]/bin/mysqladmin -u runner password diesel |
| 145 | + /opt/homebrew/opt/[email protected]/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'runner'@'localhost';" -urunner |
| 146 | + echo "DATABASE_URL=mysql://runner:diesel@localhost/diesel_test" >> $GITHUB_ENV |
145 | 147 |
|
146 | 148 | - name: Install postgres (Windows)
|
147 | 149 | if: runner.os == 'Windows' && matrix.backend == 'postgres'
|
|
0 commit comments