test ncruces

This commit is contained in:
Alex Garcia 2024-07-11 22:45:27 -07:00
parent 73b9156a7c
commit 584952b9ee
2 changed files with 21 additions and 3 deletions

View file

@ -89,6 +89,24 @@ jobs:
with: with:
name: sqlite-vec-wasm32-emscripten name: sqlite-vec-wasm32-emscripten
path: dist/* path: dist/*
build-ncruces-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make sqlite-vec.h
- uses: actions/checkout@v4
with:
repository: ncruces/go-sqlite3
path: go-sqlite3
- run: .github/workflows/repro.sh
working-directory: go-sqlite3/
- run: git apply ../bindings/go/ncruces/go-sqlite3.patch
working-directory: go-sqlite3/
- run: ./scripts/vendor.sh
- uses: actions/upload-artifact@v4
with:
name: sqlite-vec-ncruces-go
path: dist/*
build-cosmopolitan: build-cosmopolitan:
runs-on: macos-latest runs-on: macos-latest
steps: steps:

View file

@ -22,7 +22,7 @@ index 4fb926b..49a9ee9 100644
#include "vfs.c" #include "vfs.c"
#include "vtab.c" #include "vtab.c"
- -
+#include "../../../../../sqlite-vec.c" +#include "../../sqlite-vec.c"
sqlite3_destructor_type malloc_destructor = &free; sqlite3_destructor_type malloc_destructor = &free;
__attribute__((constructor)) void init() { __attribute__((constructor)) void init() {