mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-26 17:26:25 +02:00
gha: vendor scripts
This commit is contained in:
parent
b182ec2262
commit
bf0886b3b7
3 changed files with 16 additions and 0 deletions
4
.github/workflows/test.yaml
vendored
4
.github/workflows/test.yaml
vendored
|
|
@ -10,6 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: ./scripts/vendor.sh
|
||||||
- run: make loadable
|
- run: make loadable
|
||||||
- run: pip install pytest numpy; make test-loadable
|
- run: pip install pytest numpy; make test-loadable
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
@ -20,6 +21,7 @@ jobs:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: ./scripts/vendor.sh
|
||||||
- run: make loadable
|
- run: make loadable
|
||||||
- run: /usr/local/opt/python@3/libexec/bin/python -m pip install pytest numpy; make test-loadable python=/usr/local/opt/python@3/libexec/bin/python
|
- run: /usr/local/opt/python@3/libexec/bin/python -m pip install pytest numpy; make test-loadable python=/usr/local/opt/python@3/libexec/bin/python
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
@ -30,6 +32,7 @@ jobs:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: ./scripts/vendor.sh
|
||||||
- run: make loadable CFLAGS="-target arm64-apple-macos11"
|
- run: make loadable CFLAGS="-target arm64-apple-macos11"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -39,6 +42,7 @@ jobs:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: ./scripts/vendor.sh
|
||||||
- run: make loadable
|
- run: make loadable
|
||||||
- run: pip install pytest numpy; make test-loadable
|
- run: pip install pytest numpy; make test-loadable
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
|
||||||
8
scripts/vendor.sh
Executable file
8
scripts/vendor.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
mkdir -p vendor
|
||||||
|
curl -o sqlite-amalgamation.zip https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip
|
||||||
|
unzip -d
|
||||||
|
unzip sqlite-amalgamation.zip
|
||||||
|
mv sqlite-amalgamation-3450300/* vendor/
|
||||||
|
rmdir sqlite-amalgamation-3450300
|
||||||
|
rm sqlite-amalgamation.zip
|
||||||
|
|
@ -12,6 +12,10 @@
|
||||||
#include "sqlite3ext.h"
|
#include "sqlite3ext.h"
|
||||||
SQLITE_EXTENSION_INIT1
|
SQLITE_EXTENSION_INIT1
|
||||||
|
|
||||||
|
typedef u_int8_t uint8_t;
|
||||||
|
typedef u_int16_t uint16_t;
|
||||||
|
typedef u_int64_t uint64_t;
|
||||||
|
|
||||||
#ifndef UNUSED_PARAMETER
|
#ifndef UNUSED_PARAMETER
|
||||||
#define UNUSED_PARAMETER(X) (void)(X)
|
#define UNUSED_PARAMETER(X) (void)(X)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue