@@ -15,15 +15,15 @@ jobs:
1515 name : Compile sqlite3 for ${{ matrix.os }}
1616 runs-on : ${{ matrix.os }}
1717 env :
18- SQLITE_YEAR : " 2024 "
19- SQLITE_VERSION : " 3470200 "
18+ SQLITE_YEAR : " 2025 "
19+ SQLITE_VERSION : " 3480000 "
2020
2121 steps :
2222 - uses : actions/cache@v4
2323 id : cache_sqlite_build
2424 with :
2525 path : sqlite/out
26- key : sqlite-v3 -${{ runner.os }}-${{ env.SQLITE_VERSION }}
26+ key : sqlite-v4 -${{ runner.os }}-${{ env.SQLITE_VERSION }}
2727 - name : Compile sqlite3 on Linux
2828 if : steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Linux'
2929 run : |
3838 cp sqlite3 ../out
3939 cp .libs/libsqlite3.so ../out
4040 cp *.h ../out
41+ - name : Compile sqlite3 on Linux (no autoinit)
42+ if : steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Linux'
43+ working-directory : sqlite
44+ run : |
45+ curl https://www.sqlite.org/$SQLITE_YEAR/sqlite-amalgamation-$SQLITE_VERSION.zip --output sqlite.zip
46+ unzip sqlite.zip
47+
48+ cd sqlite-amalgamation-$SQLITE_VERSION
49+ gcc -DSQLITE_OMIT_AUTOINIT=1 -c -fPIC sqlite3.c -o sqlite3.o
50+ gcc -shared sqlite3.o -o libsqlite3.so
51+ mkdir ../out/without_autoinit
52+ cp libsqlite3.so ../out/without_autoinit
4153 - name : Compile sqlite3 on macOS
4254 if : steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'macOS'
4355 run : |
@@ -179,6 +191,16 @@ jobs:
179191 dart test -P ci
180192 working-directory : sqlite3/
181193
194+ - name : Test with SQLITE_OMIT_AUTOINIT
195+ if : runner.os == 'Linux'
196+ run : |
197+ ls $LD_LIBRARY_PATH
198+ dart run tool/check_compile_time_option.dart OMIT_AUTOINIT
199+ dart test -P ci
200+ env :
201+ LD_LIBRARY_PATH : ../sqlite/out/without_autoinit
202+ working-directory : sqlite3/
203+
182204 - name : Test sqlite3_test package
183205 run : |
184206 dart pub get
0 commit comments