Skip to content

Commit

Permalink
Merge pull request #110 from vmware-labs/latest-versions
Browse files Browse the repository at this point in the history
Bump to latest versions (along with the wasi-sdk-20 builds)
  • Loading branch information
assambar authored Jun 23, 2023
2 parents b99289e + d1d83f1 commit 2993864
Show file tree
Hide file tree
Showing 69 changed files with 5,529 additions and 184 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ jobs:
flavor: -slim
build-php-cli: false
version: 8.2.0
- name: php-
suffix: ""
flavor: ""
build-php-cli: false
version: 8.2.6
- name: wasmedge-php-
suffix: "-wasmedge"
flavor: ""
build-php-cli: false
version: 8.2.6
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
include:
- prefix: ""
suffix: ""
version: "3.11.3"
version: "3.11.4"
- prefix: "wasmedge-"
suffix: "-wasmedge"
version: "3.11.3"
version: "3.11.4"
- prefix: "aio-"
suffix: "-aio"
version: "3.11.3"
version: "3.11.4"
- prefix: "aio-wasmedge-"
suffix: "-aio-wasmedge"
version: "3.11.3"
version: "3.11.4"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-ruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
include:
- version: 3.2.0
target_version: 3_2_0
- version: 3.2.2
target_version: 3_2_2
exclude:
- flavor: "-slim"
version: 3.2.2
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ jobs:
flavor: -slim
build-php-cli: false
version: 8.2.0
- name: php-
suffix: ""
flavor: ""
build-php-cli: false
version: 8.2.6
- name: wasmedge-php-
suffix: "-wasmedge"
flavor: ""
build-php-cli: true
version: 8.2.6
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-ruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
include:
- version: 3.2.0
target_version: 3_2_0
- version: 3.2.2
target_version: 3_2_2
exclude:
- flavor: "-slim"
version: 3.2.2
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.wasi-builder
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apt update && \
clang \
curl \
git \
jq \
libtool \
libtool-bin \
pkg-config \
Expand Down
33 changes: 19 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ php/wasmedge-php-8.2.0:
WLR_BUILD_FLAVOR=wasmedge \
make -C php php-8.2.0

.PHONY: php/wasmedge-php-8.2.6
php/wasmedge-php-8.2.6:
WLR_BUILD_FLAVOR=wasmedge \
make -C php php-8.2.6

.PHONY: php/master
php/master:
make -C php master
Expand Down Expand Up @@ -62,42 +67,42 @@ oci-python-3.11.1-wasmedge: python/wasmedge-v3.11.1
-f images/python/Dockerfile \
build-output

.PHONY: python/wasmedge-v3.11.3
python/wasmedge-v3.11.3:
.PHONY: python/wasmedge-v3.11.4
python/wasmedge-v3.11.4:
WLR_BUILD_FLAVOR=wasmedge \
make -C python $(subst python/wasmedge-,,$@)

.PHONY: python/aio-v3.11.3
python/aio-v3.11.3:
.PHONY: python/aio-v3.11.4
python/aio-v3.11.4:
WLR_BUILD_FLAVOR=aio \
make -C python $(subst python/aio-,,$@)

.PHONY: python/aio-wasmedge-v3.11.3
python/aio-wasmedge-v3.11.3:
.PHONY: python/aio-wasmedge-v3.11.4
python/aio-wasmedge-v3.11.4:
WLR_BUILD_FLAVOR=aio-wasmedge \
make -C python $(subst python/aio-wasmedge-,,$@)

.PHONY: oci-python-3.11.3
oci-python-3.11.3: python/v3.11.3
.PHONY: oci-python-3.11.4
oci-python-3.11.4: python/v3.11.4
docker build \
--platform wasi/wasm32 \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.3 \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.4 \
--build-arg PYTHON_BINARY=python.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.11.3 \
-t ghcr.io/vmware-labs/python-wasm:3.11.4 \
-f images/python/Dockerfile \
build-output

.PHONY: oci-python-3.11.3-wasmedge
oci-python-3.11.3-wasmedge: python/wasmedge-v3.11.3
.PHONY: oci-python-3.11.4-wasmedge
oci-python-3.11.3-wasmedge: python/wasmedge-v3.11.4
docker build \
--platform wasi/wasm32 \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI+WasmEdge, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.3-wasmedge \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.4-wasmedge \
--build-arg PYTHON_BINARY=python.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.11.3-wasmedge \
-t ghcr.io/vmware-labs/python-wasm:3.11.4-wasmedge \
-f images/python/Dockerfile \
build-output

Expand Down
2 changes: 1 addition & 1 deletion libs/bundle_wlr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This folder builds assets of the bundle_wlr project.

The list of bundled libraries can be deduced from [wlr-build-deps.sh](./wlr-build-deps.sh) in main project page is at [https://www.zlib.net/](https://www.zlib.net/).
The list of bundled libraries can be deduced from the `"deps"` section in [wlr-info.json](./wlr-info.sh). The main project page is at [https://www.zlib.net/](https://www.zlib.net/).
32 changes: 0 additions & 32 deletions libs/bundle_wlr/wlr-build-deps.sh

This file was deleted.

36 changes: 36 additions & 0 deletions libs/bundle_wlr/wlr-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"deps": {
"zlib": {
"build_target": "libs/zlib/v1.2.13",
"required_file": "lib/wasm32-wasi/libz.a"
},
"libpng": {
"build_target": "libs/libpng/v1.6.39",
"required_file": "lib/wasm32-wasi/libpng16.a"
},
"libjpeg": {
"build_target": "libs/libjpeg/v2.1.5.1",
"required_file": "lib/wasm32-wasi/libjpeg.a"
},
"libxml2": {
"build_target": "libs/libxml2/v2.11.4",
"required_file": "lib/wasm32-wasi/libxml2.a"
},
"oniguruma": {
"build_target": "libs/oniguruma/v6.9.8",
"required_file": "lib/wasm32-wasi/libonig.a"
},
"SQLite": {
"build_target": "libs/sqlite/v3.42.0",
"required_file": "lib/wasm32-wasi/libsqlite3.a"
},
"libuuid": {
"build_target": "libs/libuuid/v1.0.3",
"required_file": "lib/wasm32-wasi/libuuid.a"
},
"bzip2": {
"build_target": "libs/bzip2/v1.0.8",
"required_file": "lib/wasm32-wasi/libbz2.a"
}
}
}
12 changes: 0 additions & 12 deletions libs/libpng/v1.6.39/wlr-build-deps.sh

This file was deleted.

8 changes: 8 additions & 0 deletions libs/libpng/v1.6.39/wlr-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"deps": {
"zlib": {
"build_target": "libs/zlib/v1.2.13",
"required_file": "lib/wasm32-wasi/libz.a"
}
}
}
2 changes: 1 addition & 1 deletion libs/libuuid/v1.0.3/wlr-env-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ fi

export WLR_REPO=https://git.code.sf.net/p/libuuid/code
export WLR_REPO_BRANCH=libuuid-1.0.3
export WLR_ENV_NAME=uuid/libuuid-1.0.3
export WLR_ENV_NAME=libuuid/libuuid-1.0.3
export WLR_PACKAGE_VERSION=1.0.3
export WLR_PACKAGE_NAME=uuid
45 changes: 45 additions & 0 deletions libs/libxml2/v2.11.4/wlr-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env bash

if [[ ! -v WLR_ENV ]]
then
echo "Wasmlabs environment is not set"
exit 1
fi

export CFLAGS_CONFIG="-O0"

export CFLAGS_WASI="--sysroot=${WASI_SYSROOT}"
export LDFLAGS_WASI="--sysroot=${WASI_SYSROOT}"

export CFLAGS_LIBXML2=''

logStatus "Using LIBXML2 DEFINES: ${CFLAGS_LIBXML2}"

export CFLAGS_BUILD=''

# We need to add LDFLAGS ot CFLAGS because autoconf compiles(+links) to binary when checking stuff
export CFLAGS="${CFLAGS_CONFIG} ${CFLAGS_WASI} ${CFLAGS_LIBXML2} ${CFLAGS_BUILD} ${LDFLAGS_WASI}"
export LDFLAGS="${LDFLAGS_WASI}"

cd "${WLR_SOURCE_PATH}"

source ${WLR_REPO_ROOT}/scripts/build-helpers/wlr_pkg_config.sh

if [[ -z "$WLR_SKIP_CONFIGURE" ]]; then
./autogen.sh
export LIBXML2_CONFIGURE="${WLR_CONFIGURE_PREFIXES} --enable-static --disable-shared --with-minimum=yes --with-output=yes --with-schemas=yes --with-tree=yes --with-valid=yes --with-html=yes --with-xpath=yes --with-reader=yes --with-writer=yes --with-xinclude=yes --with-c14n=yes --with-sax1=yes"
logStatus "Configuring build with '${LIBXML2_CONFIGURE}'..."
./configure --config-cache --host=wasm32-wasi host_alias=wasm32-musl-wasi --target=wasm32-wasi target_alias=wasm32-musl-wasi ${LIBXML2_CONFIGURE} || exit 1
else
logStatus "Skipping configure..."
fi

logStatus "Building..."
make -j || exit 1

logStatus "Preparing artifacts..."
make install ${WLR_INSTALL_PREFIXES} || exit 1

wlr_package_lib

logStatus "DONE. Artifacts in ${WLR_OUTPUT}"
16 changes: 16 additions & 0 deletions libs/libxml2/v2.11.4/wlr-env-repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

if [[ $1 == "--unset" ]]; then
unset WLR_REPO
unset WLR_REPO_BRANCH
unset WLR_ENV_NAME
unset WLR_PACKAGE_VERSION
unset WLR_PACKAGE_NAME
return
fi

export WLR_REPO=https://github.com/GNOME/libxml2.git
export WLR_REPO_BRANCH=v2.11.4
export WLR_ENV_NAME=libxml2/v2.11.4
export WLR_PACKAGE_VERSION=2.11.4
export WLR_PACKAGE_NAME=xml2
1 change: 1 addition & 0 deletions libs/libxml2/v2.11.4/wlr-tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export WLR_TAG="libs/libxml2/2.11.4"
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From 50027d770993b4bf5875e6cebf608151062765a9 Mon Sep 17 00:00:00 2001
From: "[email protected]" <Wasm Labs Team>
Date: Mon, 19 Jun 2023 14:58:12 +0300
Subject: [PATCH] Allow installation of headers and pkg-config files with the
library


diff --git a/Makefile.in b/Makefile.in
index 61cb3ef..68b0252 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1471,19 +1471,19 @@ threadtest5: sqlite3.c $(TOP)/test/threadtest5.c

# Standard install and cleanup targets
#
-lib_install: libsqlite3.la
+lib_install: libsqlite3.la sqlite3.h sqlite3.pc
$(INSTALL) -d $(DESTDIR)$(libdir)
$(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
-
-install: sqlite3$(TEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl_install}
- $(INSTALL) -d $(DESTDIR)$(bindir)
- $(LTINSTALL) sqlite3$(TEXE) $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(includedir)
$(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
$(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
$(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)

+install: sqlite3$(TEXE) lib_install ${HAVE_TCL:1=tcl_install}
+ $(INSTALL) -d $(DESTDIR)$(bindir)
+ $(LTINSTALL) sqlite3$(TEXE) $(DESTDIR)$(bindir)
+
pkgIndex.tcl:
echo 'package ifneeded sqlite3 $(RELEASE) [list load [file join $$dir libtclsqlite3[info sharedlibextension]] sqlite3]' > $@
tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
--
2.38.1

Loading

0 comments on commit 2993864

Please sign in to comment.