[Need Testing] Actually fix sqlite 3 issues (#515)

* 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
This commit is contained in:
Marco Rodolfi
2023-07-27 18:47:46 +02:00
committed by GitHub
parent c7e4eb1b3f
commit d4a76da78c
+22 -5
View File
@@ -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
@@ -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: |