Skip to content

Commit

Permalink
Add diesel to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Jul 14, 2023
1 parent dbe1ffe commit cfb15c3
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: tests
on:
pull_request:
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
- .gitignore
push:
branches:
- master
- 0.*.x
- pr/**/ci
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
- .gitignore

concurrency:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit cfb15c3

Please sign in to comment.