feat: zig-sqlite.

This commit is contained in:
2026-04-24 17:26:20 -04:00
parent 799d95a4c6
commit a13264c80c
36 changed files with 22057 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
name: Bug report
description: Create a bug report
labels:
- bug
body:
- type: markdown
attributes:
value: |
# A bug means something doesn't work as expected
Remember to include as much detail as possible.
- type: input
id: commit
attributes:
label: zig-sqlite commit
description: "The git commit of zig-sqlite"
validations:
required: true
- type: input
id: zig_version
attributes:
label: Zig version
description: "The output of `zig version`"
placeholder: "0.11.0-dev.3335+3085e2af4"
validations:
required: true
- type: textarea
id: repro
attributes:
label: Steps to reproduce
description: How can someone reproduce the problem you encountered ? Include a self-contained reproducer if possible
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behaviour
description: What did you expect to happen?
validations:
required: true

View File

@@ -0,0 +1,6 @@
# Description
Please describe the changes you want to make and why. Please also provide an explanation of the implementation.
As a rule of thumb, give as much detail as you would want to see if you were to review this PR.
If this PR closes an issue, please reference it with something like "Closes #issue".

View File

@@ -0,0 +1,62 @@
name: CI
on:
create:
push:
branches: master
paths:
- '**.zig'
pull_request:
schedule:
- cron: "0 13 * * *"
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: master
- run: zig fmt --check *.zig
test-in-memory:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup zig
uses: mlugg/setup-zig@v2
with:
version: master
- name: Install qemu
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
sudo apt-get update -y && sudo apt-get install -y qemu-user-binfmt
- name: Restore cache
uses: actions/cache@v4
with:
path: |
zig-cache
~/.cache/zig
key: ${{ runner.os }}-${{ matrix.os }}-zig-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig-
- name: Run Tests in memory
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine
- name: Run Tests in memory
if: ${{ matrix.os != 'ubuntu-24.04' }}
run: zig build test -Dci=true -Din_memory=true --summary all