Skip to content

Commit bf0886b

Browse files
committed
gha: vendor scripts
1 parent b182ec2 commit bf0886b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-20.04
1111
steps:
1212
- uses: actions/checkout@v3
13+
- run: ./scripts/vendor.sh
1314
- run: make loadable
1415
- run: pip install pytest numpy; make test-loadable
1516
- uses: actions/upload-artifact@v3
@@ -20,6 +21,7 @@ jobs:
2021
runs-on: macos-11
2122
steps:
2223
- uses: actions/checkout@v3
24+
- run: ./scripts/vendor.sh
2325
- run: make loadable
2426
- 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
2527
- uses: actions/upload-artifact@v3
@@ -30,6 +32,7 @@ jobs:
3032
runs-on: macos-11
3133
steps:
3234
- uses: actions/checkout@v3
35+
- run: ./scripts/vendor.sh
3336
- run: make loadable CFLAGS="-target arm64-apple-macos11"
3437
- uses: actions/upload-artifact@v3
3538
with:
@@ -39,6 +42,7 @@ jobs:
3942
runs-on: windows-2019
4043
steps:
4144
- uses: actions/checkout@v3
45+
- run: ./scripts/vendor.sh
4246
- run: make loadable
4347
- run: pip install pytest numpy; make test-loadable
4448
- uses: actions/upload-artifact@v3

scripts/vendor.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
mkdir -p vendor
3+
curl -o sqlite-amalgamation.zip https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip
4+
unzip -d
5+
unzip sqlite-amalgamation.zip
6+
mv sqlite-amalgamation-3450300/* vendor/
7+
rmdir sqlite-amalgamation-3450300
8+
rm sqlite-amalgamation.zip

sqlite-vec.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#include "sqlite3ext.h"
1313
SQLITE_EXTENSION_INIT1
1414

15+
typedef u_int8_t uint8_t;
16+
typedef u_int16_t uint16_t;
17+
typedef u_int64_t uint64_t;
18+
1519
#ifndef UNUSED_PARAMETER
1620
#define UNUSED_PARAMETER(X) (void)(X)
1721
#endif

0 commit comments

Comments
 (0)