Skip to content

Commit

Permalink
gha: vendor scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Apr 20, 2024
1 parent b182ec2 commit bf0886b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: ./scripts/vendor.sh
- run: make loadable
- run: pip install pytest numpy; make test-loadable
- uses: actions/upload-artifact@v3
Expand All @@ -20,6 +21,7 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- run: ./scripts/vendor.sh
- 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
- uses: actions/upload-artifact@v3
Expand All @@ -30,6 +32,7 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- run: ./scripts/vendor.sh
- run: make loadable CFLAGS="-target arm64-apple-macos11"
- uses: actions/upload-artifact@v3
with:
Expand All @@ -39,6 +42,7 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- run: ./scripts/vendor.sh
- run: make loadable
- run: pip install pytest numpy; make test-loadable
- uses: actions/upload-artifact@v3
Expand Down
8 changes: 8 additions & 0 deletions scripts/vendor.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions sqlite-vec.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT1

typedef u_int8_t uint8_t;
typedef u_int16_t uint16_t;
typedef u_int64_t uint64_t;

#ifndef UNUSED_PARAMETER
#define UNUSED_PARAMETER(X) (void)(X)
#endif
Expand Down

0 comments on commit bf0886b

Please sign in to comment.