mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-27 01:36:32 +02:00
test ncruces
This commit is contained in:
parent
73b9156a7c
commit
584952b9ee
2 changed files with 21 additions and 3 deletions
18
.github/workflows/test.yaml
vendored
18
.github/workflows/test.yaml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ index 36183bb..d202a26 100755
|
||||||
+ -DSQLITE_VEC_OMIT_FS=1 \
|
+ -DSQLITE_VEC_OMIT_FS=1 \
|
||||||
-DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \
|
-DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \
|
||||||
$(awk '{print "-Wl,--export="$0}' exports.txt)
|
$(awk '{print "-Wl,--export="$0}' exports.txt)
|
||||||
|
|
||||||
diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm
|
diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm
|
||||||
index 569f0b3..b1d9693 100755
|
index 569f0b3..b1d9693 100755
|
||||||
Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ
|
Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ
|
||||||
|
|
@ -22,9 +22,9 @@ 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() {
|
||||||
@@ -28,4 +28,5 @@ __attribute__((constructor)) void init() {
|
@@ -28,4 +28,5 @@ __attribute__((constructor)) void init() {
|
||||||
sqlite3_auto_extension((void (*)(void))sqlite3_series_init);
|
sqlite3_auto_extension((void (*)(void))sqlite3_series_init);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue