From 5b699af625bf24ed3959360bf86dcc9b53df9c0b Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Fri, 24 Jan 2025 07:21:20 +0100 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c5cb7599d0f..5de4015c4d5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,13 +21,16 @@ 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] + rust: ["stable"] + backend: ["postgres", "mysql", "sqlite"] + os: ["windows-2025"] + #rust: ["stable", "beta", "nightly"] + #backend: ["postgres", "sqlite", "mysql"] + #os: [ubuntu-latest, macos-13, macos-15, windows-2019] runs-on: ${{ matrix.os }} steps: - name: Checkout sources @@ -128,7 +131,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) @@ -143,10 +146,10 @@ jobs: if: runner.os == 'Windows' && matrix.backend == 'postgres' shell: bash run: | - choco install postgresql14 --force --params '/Password:root' + choco install postgresql17 --force --params '/Password:root' echo "OPENSSL_RUST_USE_NASM=0" >> $GITHUB_ENV echo OPENSSL_SRC_PERL=C:/Strawberry/perl/bin/perl >> $GITHUB_ENV - echo "PQ_LIB_DIR=C:\Program Files\PostgreSQL\14\lib" >> $GITHUB_ENV + echo "PQ_LIB_DIR=C:\Program Files\PostgreSQL\17\lib" >> $GITHUB_ENV echo "PG_DATABASE_URL=postgres://postgres:root@localhost/" >> $GITHUB_ENV echo "PG_EXAMPLE_DATABASE_URL=postgres://postgres:root@localhost/diesel_example" >> $GITHUB_ENV @@ -154,8 +157,8 @@ jobs: 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 + choco install mariadb --version=11.5.0 + "C:\Program Files\MariaDB 11.5\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' @@ -166,11 +169,11 @@ jobs: echo "MYSQL_DATABASE_URL=mysql://root@127.0.0.1/diesel_test" >> $GITHUB_ENV echo "MYSQL_EXAMPLE_DATABASE_URL=mysql://root@127.0.0.1/diesel_example" >> $GITHUB_ENV echo "MYSQL_UNIT_TEST_DATABASE_URL=mysql://root@127.0.0.1/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\MariaDB 11.5\lib" >> $GITHUB_ENV + echo "MYSQLCLIENT_VERSION=11.5.1" >> $GITHUB_ENV + echo "C:\Program Files\MariaDB 11.5\lib" >> $GITHUB_PATH + echo "C:\Program Files\MariaDB 11.5\bin" >> $GITHUB_PATH + dir "C:\Program Files\MariaDB 11.5\lib" - name: Install rust toolchain uses: dtolnay/rust-toolchain@master