The binding started in Inbe's storage code: SQLite's own functions and return codes, plus variants that take Ziran strings and copy them to the NUL-terminated text SQLite expects. The test opens an in-memory database and checks text with escapes, 64-bit integers, statement reuse, long SQL, errors, and a refused tail pointer.
31 lines
642 B
YAML
31 lines
642 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
path: sqlite
|
|
|
|
- name: Install SQLite
|
|
run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev
|
|
|
|
- name: Build the ziran launcher
|
|
run: |
|
|
git clone --depth 1 https://github.com/ziranlang/ziran.git ziran
|
|
make -C ziran
|
|
echo "$PWD/ziran/build/bin" >> "$GITHUB_PATH"
|
|
|
|
- name: Test
|
|
working-directory: sqlite
|
|
run: |
|
|
ziran fetch --locked
|
|
make check
|