@@ -287,7 +287,7 @@ jobs:
287287 # Set up Java environment
288288 # -------------------------------------------------
289289 - name : Set up Java
290- uses : actions/setup-java@v4
290+ uses : actions/setup-java@v5
291291 with :
292292 distribution : temurin
293293 java-version : ' 17'
@@ -296,7 +296,7 @@ jobs:
296296 # Install Android SDK
297297 # -------------------------------------------------
298298 - name : Install Android SDK components
299- uses : android-actions/setup-android@v3
299+ uses : android-actions/setup-android@v4
300300
301301 # -------------------------------------------------
302302 # Install Android NDK
@@ -743,7 +743,7 @@ jobs:
743743 run : |
744744 srcdir="sqlite-wasm-see-${SQLITE_VERSION_RAW}"
745745 dstdir="sqlite3mc-wasm-${SQLITE_VERSION_RAW}"
746- zipname="sqlite3mc-${VERSION }-sqlite-${SQLITE_VERSION}-wasm.zip"
746+ zipname="sqlite3mc-${SQLITE3MC_VERSION }-sqlite-${SQLITE_VERSION}-wasm.zip"
747747 mv $srcdir $dstdir
748748 zip -r $zipname $dstdir
749749
@@ -755,3 +755,74 @@ jobs:
755755 with :
756756 name : sqlite3mc-wasm
757757 path : sqlite/ext/wasm/*.zip
758+
759+ # ########################################################
760+ # Job for building autoconf
761+ # ########################################################
762+
763+ build-autoconf :
764+ name : Build autoconf package
765+ needs : amalgamate
766+ runs-on : ubuntu-latest
767+
768+ outputs :
769+ artifact-name : sqlite-wasm-binaries
770+
771+ steps :
772+ # -------------------------------------------------
773+ # Checkout repository
774+ # -------------------------------------------------
775+ - name : Checkout repository
776+ uses : actions/checkout@v6
777+
778+ # -------------------------------------------------
779+ # Create environment variables
780+ # -------------------------------------------------
781+ - name : Build context
782+ shell : pwsh
783+ run : |
784+ python scripts/build_context.py
785+
786+ # -------------------------------------------------
787+ # Download SQLite3MC amalgamation
788+ # -------------------------------------------------
789+ - name : Download SQLite3MC amalgamation
790+ uses : actions/download-artifact@v8
791+ with :
792+ name : amalgamation
793+ path : archives
794+
795+ # -------------------------------------------------
796+ # Unpack SQLite3MC amalgamation
797+ # -------------------------------------------------
798+ - name : Unpack SQLite3MC amalgamation
799+ run : |
800+ mkdir amalgamation
801+ unzip archives/amalgamation.zip -d amalgamation
802+
803+ # -------------------------------------------------
804+ # Copy SQLite3MC amalgamation to WASM directory
805+ # -------------------------------------------------
806+ - name : Replace SQLite sources by own amalgamation
807+ run : |
808+ cp -fv amalgamation/sqlite3mc_amalgamation.c autoconf/sqlite3.c
809+ cp -fv amalgamation/sqlite3mc_amalgamation.h autoconf/sqlite3.h
810+ cp -fv amalgamation/shell3mc_amalgamation.c autoconf/shell.c
811+ cp -fv src/sqlite3ext.h autoconf/sqlite3ext.h
812+
813+ # -------------------------------------------------
814+ # Package WASM binary ZIP
815+ # -------------------------------------------------
816+ - name : Package artifacts
817+ run : |
818+ targzname="archives/sqlite3mc-${SQLITE3MC_VERSION}-sqlite-${SQLITE_VERSION}-autoconf.tar.gz"
819+ tar -czvf $targzname autoconf
820+
821+ # -------------------------------------------------
822+ # Upload autoconf release archive
823+ # -------------------------------------------------
824+ - name : Upload build artifact
825+ uses : actions/upload-artifact@v7
826+ with :
827+ name : sqlite3mc-autoconf
828+ path : archives/sqlite3*.tar.gz
0 commit comments