From cfb15c3a02bb3d2aded839f48e9ce29ee4440203 Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Fri, 14 Jul 2023 18:45:09 -0400 Subject: [PATCH] Add diesel to build --- .github/workflows/rust.yml | 45 ++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ca1bb8b1c..87c7eea89 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,8 +3,8 @@ name: tests on: pull_request: paths-ignore: - - '**.md' - - '.github/ISSUE_TEMPLATE/**' + - "**.md" + - ".github/ISSUE_TEMPLATE/**" - .gitignore push: branches: @@ -12,8 +12,8 @@ on: - 0.*.x - pr/**/ci paths-ignore: - - '**.md' - - '.github/ISSUE_TEMPLATE/**' + - "**.md" + - ".github/ISSUE_TEMPLATE/**" - .gitignore concurrency: @@ -127,6 +127,25 @@ jobs: - run: cargo build --manifest-path sea-query-postgres/Cargo.toml --workspace --features=with-mac_address - run: cargo build --manifest-path sea-query-postgres/Cargo.toml --workspace --features=postgres-array + diesel-build: + name: Build `sea-query-diesel` + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-chrono,with-json,with-rust_decimal,with-bigdecimal,with-uuid,with-time,with-ipnetwork,with-mac_address,postgres-array + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-chrono + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-json + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-rust_decimal + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres --features=with-rust_decimal-postgres + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features mysql --features=with-rust_decimal-mysql + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-bigdecimal + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-uuid + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-time + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-ipnetwork + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-mac_address + - run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=postgres-array + test: name: Unit Test runs-on: ubuntu-latest @@ -149,10 +168,11 @@ jobs: sqlite: name: SQLite runs-on: ubuntu-latest - needs: ["test", "derive-test", "rusqlite-build", "binder-build"] + needs: + ["test", "derive-test", "rusqlite-build", "binder-build", "diesel-build"] strategy: matrix: - example: [rusqlite, sqlx_sqlite] + example: [rusqlite, sqlx_sqlite, diesel_sqlite] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -162,11 +182,11 @@ jobs: mysql: name: MySQL runs-on: ubuntu-latest - needs: ["test", "derive-test", "binder-build"] + needs: ["test", "derive-test", "binder-build", "diesel-build"] strategy: matrix: version: [8.0, 5.7] - example: [sqlx_mysql] + example: [sqlx_mysql, diesel_mysql] services: mysql: image: mysql:${{ matrix.version }} @@ -192,11 +212,11 @@ jobs: mariadb: name: MariaDB runs-on: ubuntu-latest - needs: ["test", "derive-test", "binder-build"] + needs: ["test", "derive-test", "binder-build", "diesel-build"] strategy: matrix: version: [10.6] - example: [sqlx_mysql] + example: [sqlx_mysql, diesel_mysql] services: mariadb: image: mariadb:${{ matrix.version }} @@ -222,11 +242,12 @@ jobs: postgres: name: PostgreSQL runs-on: ubuntu-latest - needs: ["test", "derive-test", "binder-build", "postgres-build"] + needs: + ["test", "derive-test", "binder-build", "postgres-build", "diesel-build"] strategy: matrix: version: [14.4, 13.7, 12.11] - example: [postgres, sqlx_postgres] + example: [postgres, sqlx_postgres, diesel_postgres] services: postgres: image: postgres:${{ matrix.version }}