diff --git a/.github/scripts/build_projects.py b/.github/scripts/build_projects.py index 85de128..bbf0e20 100755 --- a/.github/scripts/build_projects.py +++ b/.github/scripts/build_projects.py @@ -32,6 +32,8 @@ elif PLATFORM_TARGET in ("win32_static", "armhf_static", "armhf_dyn", "i586_stat TARGETS = ("kiwix-tools",) elif PLATFORM_TARGET == "flatpak": TARGETS = ("kiwix-desktop",) +elif PLATFORM_TARGET == "wasm": + TARGETS = ("libzim", ) else: TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools") diff --git a/.github/scripts/build_release_nightly.py b/.github/scripts/build_release_nightly.py index 5907ac8..407efe9 100755 --- a/.github/scripts/build_release_nightly.py +++ b/.github/scripts/build_release_nightly.py @@ -38,6 +38,8 @@ elif PLATFORM_TARGET in ("win32_static", "armhf_static", "i586_static"): TARGETS = ("kiwix-tools",) elif PLATFORM_TARGET == "flatpak": TARGETS = ("kiwix-desktop",) +elif PLATFORM_TARGET == "wasm": + TARGETS = ("libzim", ) else: TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools") diff --git a/.github/scripts/common.py b/.github/scripts/common.py index a9e54f8..dfc03d6 100644 --- a/.github/scripts/common.py +++ b/.github/scripts/common.py @@ -51,6 +51,7 @@ PLATFORM_TO_RELEASE = { "android_arm64": "android-arm64", "android_x86": "android-x86", "android_x86_64": "android-x86_64", + "wasm": "wasm-emscripten", } LIB_PREFIX = { diff --git a/.github/scripts/compile_all_deps.py b/.github/scripts/compile_all_deps.py index f7d471d..c690af1 100755 --- a/.github/scripts/compile_all_deps.py +++ b/.github/scripts/compile_all_deps.py @@ -14,6 +14,8 @@ from common import ( if PLATFORM_TARGET.startswith("android_") or PLATFORM_TARGET.startswith("iOS"): TARGETS = ("libzim", "libkiwix") +elif PLATFORM_TARGET == "wasm": + TARGETS = ("libzim", ) elif PLATFORM_TARGET.startswith("native_"): if OS_NAME == "osx": TARGETS = ("libzim", "zim-tools", "libkiwix") diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d67c2c8..bf630e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: - native_dyn - native_mixed - native_desktop + - wasm - armhf_static - armhf_dyn - i586_static