Merge 'use target_table.database_id for update so we select the cor…
#6728
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: C compat Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_INCREMENTAL: "0" | |
| CARGO_NET_RETRY: 10 | |
| 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: Setup mold linker | |
| uses: rui314/setup-mold@v1 | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: "v1-rust" | |
| cache-on-failure: true | |
| - uses: "./.github/shared/setup-sccache" | |
| - name: Build Turso C bindings | |
| run: cargo build -p turso_sqlite3 --features capi --locked | |
| - name: Run C compat tests from Rust | |
| working-directory: sqlite3 | |
| run: cargo test --locked | |
| - 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 |