-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,20 @@ concurrency: | |
jobs: | ||
check_and_test: | ||
name: Check | ||
needs: [sqlite_bundled, sqlite_wasm, rustfmt_and_clippy, postgres_bundled, mysql_bundled] | ||
needs: | ||
[ | ||
sqlite_bundled, | ||
sqlite_wasm, | ||
rustfmt_and_clippy, | ||
postgres_bundled, | ||
mysql_bundled, | ||
] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust: ["stable", "beta", "nightly"] | ||
backend: ["postgres", "sqlite", "mysql"] | ||
os: [ubuntu-latest, macos-13, macos-15, windows-2019] | ||
os: [ubuntu-latest, macos-13, macos-15, windows-2025] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
|
@@ -128,7 +135,7 @@ jobs: | |
run: | | ||
choco install sqlite | ||
cd /D C:\ProgramData\chocolatey\lib\SQLite\tools | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
lib /machine:x64 /def:sqlite3.def /out:sqlite3.lib | ||
- name: Set variables for sqlite (Windows) | ||
|
@@ -151,26 +158,28 @@ jobs: | |
echo "PG_EXAMPLE_DATABASE_URL=postgres://postgres:root@localhost/diesel_example" >> $GITHUB_ENV | ||
- name: Install mysql (Windows) | ||
if: runner.os == 'Windows' && matrix.backend == 'mysql' | ||
shell: cmd | ||
run: | | ||
choco install mysql | ||
"C:\tools\mysql\current\bin\mysql" -e "create database diesel_test; create database diesel_unit_test; grant all on `diesel_%`.* to 'root'@'localhost';" -uroot | ||
- name: Set variables for mysql (Windows) | ||
if: runner.os == 'Windows' && matrix.backend == 'mysql' | ||
shell: bash | ||
run: | | ||
mkdir "C:\\Program Files\\MySQL\\MySQL Server 8.0\\data\\" | ||
"C:\\Program Files\\MySQL\MySQL Server 8.0\\bin\\mysqld" --console --initialize --initialize-insecure | ||
"C:\\Program Files\\MySQL\MySQL Server 8.0\\bin\\mysqld" --console & | ||
sleep 15 | ||
"C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql" -e "create database diesel_test;" -u root | ||
"C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql" -e "create database diesel_unit_test;" -u root | ||
"C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql" -e 'grant all on `diesel_%`.* to 'root'@'localhost';' -uroot | ||
# remove doxygen because mysqlclient build otherwise breaks? | ||
rm "C:/Strawberry/c/bin/doxygen.exe" | ||
echo "OPENSSL_RUST_USE_NASM=0" >> $GITHUB_ENV | ||
echo OPENSSL_SRC_PERL=C:/Strawberry/perl/bin/perl >> $GITHUB_ENV | ||
echo "MYSQL_DATABASE_URL=mysql://[email protected]/diesel_test" >> $GITHUB_ENV | ||
echo "MYSQL_EXAMPLE_DATABASE_URL=mysql://[email protected]/diesel_example" >> $GITHUB_ENV | ||
echo "MYSQL_UNIT_TEST_DATABASE_URL=mysql://[email protected]/diesel_unit_test" >> $GITHUB_ENV | ||
echo "MYSQLCLIENT_LIB_DIR=C:\tools\mysql\current\lib" >> $GITHUB_ENV | ||
echo "MYSQLCLIENT_VERSION=8.0.31" >> $GITHUB_ENV | ||
echo "C:\tools\mysql\current\lib" >> $GITHUB_PATH | ||
echo "C:\tools\mysql\current\bin" >> $GITHUB_PATH | ||
dir "C:\tools\mysql\current\lib" | ||
echo "MYSQLCLIENT_LIB_DIR=C:\Program Files\MySQL\MySQL Server 8.0\lib" >> $GITHUB_ENV | ||
echo "MYSQLCLIENT_VERSION=8.0.40" >> $GITHUB_ENV | ||
echo "C:\Program Files\MySQL\MySQL Server 8.0\lib" >> $GITHUB_PATH | ||
echo "C:\Program Files\MySQL\MySQL Server 8.0\bin" >> $GITHUB_PATH | ||
dir "C:\Program Files\MySQL\MySQL Server 8.0\lib" | ||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
|