Files
turso/.github/workflows/c-compat.yml
Pekka Enberg f7bf60e856 github: Add 30 minute timeout to all jobs
We're getting hit by macOS runner concurrency limits whenever some jobs
get stuck (for example, because of a deadlock).
2025-09-26 17:45:42 +03:00

45 lines
998 B
YAML

name: C compat Tests
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust(stable)
uses: dtolnay/rust-toolchain@stable
- name: Build Turso C bindings
run: cargo build -p turso_sqlite3 --features capi
- name: Run C compat tests from Rust
working-directory: sqlite3
run: cargo test
- name: Run C compat C tests linking against real SQLite
working-directory: sqlite3/tests
run: |
make clean
make LIBS="-lsqlite3"
./sqlite3-tests
- name: Run C compat C tests linking against Turso
working-directory: sqlite3/tests
run: |
make clean
make LIBS="-L../../target/debug -lturso_sqlite3"
LD_LIBRARY_PATH=../../target/debug ./sqlite3-tests