Skip to content

Commit 270417a

Browse files
cursoragentlovasoa
andcommitted
Add odbc-sqlite test to CI
Co-authored-by: contact <[email protected]>
1 parent 4c0d4f2 commit 270417a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sqlx.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,35 @@ jobs:
339339
env:
340340
DATABASE_URL: mssql://sa:Password123!@localhost/sqlx
341341
342+
odbc-sqlite:
343+
name: ODBC (SQLite)
344+
runs-on: ubuntu-22.04
345+
needs: check
346+
steps:
347+
- uses: actions/checkout@v4
348+
- uses: dtolnay/rust-toolchain@stable
349+
- uses: Swatinem/rust-cache@v2
350+
with:
351+
prefix-key: v1-sqlx
352+
shared-key: odbc-sqlite
353+
save-if: ${{ false }}
354+
- name: Install ODBC drivers (SQLite)
355+
run: |
356+
sudo apt-get update
357+
sudo apt-get install -y unixodbc odbcinst libsqliteodbc
358+
odbcinst -q -d || true
359+
- name: Build with ODBC feature
360+
run: |
361+
cargo build --manifest-path sqlx-core/Cargo.toml \
362+
--no-default-features \
363+
--features odbc,runtime-tokio-rustls
364+
- name: Run ODBC SQLite tests
365+
run: |
366+
cargo test \
367+
--no-default-features \
368+
--features odbc,runtime-tokio-rustls \
369+
--test odbc-sqlite
370+
342371
odbc:
343372
name: ODBC (PostgreSQL via unixODBC)
344373
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)