mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
46 lines
1019 B
YAML
46 lines
1019 B
YAML
name: C compat Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
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
|