Skip to content

Commit

Permalink
[Need Testing] Actually fix sqlite 3 issues (#515)
Browse files Browse the repository at this point in the history
* Properly fix sqlite issues

* Revert python downgrade

* Horrible hack to update SQLite to the latest version in the Ubuntu VMs

* Cleanup build script

* Fix yaml formatting

* Fix typos

* Use sudo for installing binary

* Fix library path

* Wrong naming

* Wrong name again

* Small stylisting fixes

* Missed a space
  • Loading branch information
RodoMa92 authored Jul 27, 2023
1 parent c7e4eb1 commit d4a76da
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,28 @@ jobs:
with:
node-version: 18

- name: Set up Python 3.10.6 🐍
- name: Set up Python 3.11.4 🐍
uses: actions/setup-python@v4
with:
python-version: "3.10.6"

python-version: "3.11.4"

- name: Upgrade SQLite 3 binary version to 3.42.0 πŸ§‘β€πŸ’»
run: >
cd /tmp &&
wget "https://www.sqlite.org/2023/sqlite-autoconf-3420000.tar.gz" &&
tar -xvzf sqlite-autoconf-3420000.tar.gz &&
cd /tmp/sqlite-autoconf-3420000 &&
./configure --prefix=/usr --disable-static CFLAGS="-g" CPPFLAGS="$CPPFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
-DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_STMTVTAB -DSQLITE_MAX_VARIABLE_NUMBER=250000 \
-DSQLITE_MAX_EXPR_DEPTH=10000 -DSQLITE_ENABLE_MATH_FUNCTIONS" &&
make &&
sudo make install &&
sudo cp /usr/lib/libsqlite3.so /usr/lib/x86_64-linux-gnu/ &&
sudo cp /usr/lib/libsqlite3.so.0 /usr/lib/x86_64-linux-gnu/ &&
sudo cp /usr/lib/libsqlite3.so.0.8.6 /usr/lib/x86_64-linux-gnu/ &&
rm -r /tmp/sqlite-autoconf-3420000
- name: Install Python dependencies ⬇️
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -97,10 +114,10 @@ jobs:
with:
node-version: 18

- name: Set up Python 3.10.6 🐍
- name: Set up Python 3.11.4 🐍
uses: actions/setup-python@v4
with:
python-version: "3.10.6"
python-version: "3.11.4"

- name: Install Python dependencies ⬇️
run: |
Expand Down

0 comments on commit d4a76da

Please sign in to comment.