gha: vendor scripts

This commit is contained in:
Alex Garcia 2024-04-20 14:13:16 -07:00
parent b182ec2262
commit bf0886b3b7
3 changed files with 16 additions and 0 deletions

View file

@ -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
@ -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
@ -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:
@ -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

8
scripts/vendor.sh Executable file
View 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

View file

@ -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