Skip to content

Commit

Permalink
Merge pull request #115 from vmware-labs/release-links-docs
Browse files Browse the repository at this point in the history
chore: Update release links in docs after latest releases
  • Loading branch information
assambar authored Jul 14, 2023
2 parents 28828bd + cfae2a2 commit cf0f04a
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 24 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ Here is a reference to the latest releases of all built projects.

| Language runtime | Latest release |
|--- |--- |
| [php](./php/) | [8.2.0](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/php%2F8.2.0%2B20230418-d75a618) |
| [python](./python/) | [3.11.3](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/python%2F3.11.3%2B20230428-7d1b259) |
| [ruby](./ruby/) | [3.2.0](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/ruby%2F3.2.0%2B20230215-1349da9) |
| [php](./php/) | [8.2.6](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/php%2F8.2.6%2B20230714-11be424) |
| [python](./python/) | [3.11.4](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/python%2F3.11.4%2B20230714-11be424) |
| [ruby](./ruby/) | [3.2.2](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/ruby%2F3.2.2%2B20230714-11be424) |



| Library | Latest release |
|--- |--- |
| [libs/bundle_wlr](./libs/bundle_wlr) | [0.1.0](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fbundle_wlr%2F0.1.0%2B20230310-ddace6c) |
| [libs/bzip2](./libs/bzip2) | [1.0.8](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fbzip2%2F1.0.8%2B20230425-e1a7579) |
| [libs/libjpeg](./libs/libjpeg) | [2.1.5.1](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibjpeg%2F2.1.5.1%2B20230310-c46e363) |
| [libs/libpng](./libs/libpng) | [1.6.39](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibpng%2F1.6.39%2B20230310-13a5f2e) |
| [libs/libuuid](./libs/libuuid) | [1.0.3](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibuuid%2F1.0.3%2B20230310-c46e363) |
| [libs/libxml2](./libs/libxml2) | [2.10.3](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibxml2%2F2.10.3%2B20230310-c46e363) |
| [libs/oniguruma](./libs/oniguruma) | [6.9.8](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Foniguruma%2F6.9.8%2B20230310-c46e363) |
| [libs/sqlite](./libs/sqlite) | [3.41.2](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fsqlite%2F3.41.2%2B20230329-43f9aea) |
| [libs/zlib](./libs/zlib) | [1.2.13](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fzlib%2F1.2.13%2B20230310-c46e363) |
| [libs/bzip2](./libs/bzip2) | [1.0.8](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fbzip2%2F1.0.8%2B20230623-2993864) |
| [libs/libjpeg](./libs/libjpeg) | [2.1.5.1](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibjpeg%2F2.1.5.1%2B20230623-2993864) |
| [libs/libpng](./libs/libpng) | [1.6.39](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibpng%2F1.6.39%2B20230629-ccb4cb0) |
| [libs/libuuid](./libs/libuuid) | [1.0.3](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibuuid%2F1.0.3%2B20230623-2993864) |
| [libs/libxml2](./libs/libxml2) | [2.11.4](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Flibxml2%2F2.11.4%2B20230623-2993864) |
| [libs/oniguruma](./libs/oniguruma) | [6.9.8](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Foniguruma%2F6.9.8%2B20230623-2993864) |
| [libs/sqlite](./libs/sqlite) | [3.42.0](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fsqlite%2F3.42.0%2B20230623-2993864) |
| [libs/zlib](./libs/zlib) | [1.2.13](https://github.com/vmware-labs/webassembly-language-runtimes/releases/tag/libs%2Fzlib%2F1.2.13%2B20230623-2993864) |

## For developers

Expand Down
4 changes: 3 additions & 1 deletion docs/developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ This will create a tag like the following in your local repository: `php/8.1.11+

When you push the tag to the remote repository, a GitHub release will be created automatically, and relevant artifacts will be automatically published to the release.

Update the links to latest versions in [the main README.md](../README.md).

**Note**: See [GH Actions](#gh-actions). In case of several release tags on the same commit, push them to github one by one. Otherwise the `release-*` GH actions will not be triggered!

## Updating Wasi-Sdk version
## Updating wasi-sdk version

You will need ghcr.io credentials with rights to publish to `ghcr.io/vmware-labs/wasmlabs`!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ RUN mkdir /opt/work
WORKDIR /opt/work

# Download php-cgi-wasmedge.wasm
RUN curl -L -o php-cgi-8.2.0-wasmedge.wasm https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/php%2F8.2.0%2B20230418-d75a618/php-cgi-8.2.0-wasmedge.wasm
RUN curl -L -o php-cgi-wasmedge.wasm https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/php%2F8.2.6%2B20230714-11be424/php-8.2.6-wasmedge.wasm

# Install wasmedgec
RUN curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash

# Just doing AOT without optimizing as the binary is already optimized
RUN /root/.wasmedge/bin/wasmedgec --optimize 0 /opt/work/php-cgi-8.2.0-wasmedge.wasm php-cgi-8.2.0-wasmedge-aot.wasm
RUN /root/.wasmedge/bin/wasmedgec --optimize 0 /opt/work/php-cgi-wasmedge.wasm php-cgi-wasmedge-aot.wasm



FROM scratch
ENTRYPOINT [ "php-cgi-8.2.0-wasmedge.wasm", "-b", "0.0.0.0:9000", "-d", "ignore_user_abort=On"]
COPY --link --from=builder /opt/work/php-cgi-8.2.0-wasmedge-aot.wasm /php-cgi-8.2.0-wasmedge.wasm
ENTRYPOINT [ "php-cgi-wasmedge.wasm", "-b", "0.0.0.0:9000", "-d", "ignore_user_abort=On"]
COPY --link --from=builder /opt/work/php-cgi-wasmedge-aot.wasm /php-cgi-wasmedge.wasm
2 changes: 1 addition & 1 deletion python/examples/bindings/se2-bindings/run_me.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ "$1" == "--local" ]]; then
check npm
check node
else
WASI_SDK_VERSION=19.0
WASI_SDK_VERSION=20.0
WASI_CMD="docker run -t -v$(pwd):/workdir -w /workdir ghcr.io/vmware-labs/wasmlabs/wasi-builder:${WASI_SDK_VERSION}"
NODE_CMD="docker run -t -v$(pwd):/workdir -w /workdir node:16.20"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mkdir -p ${TARGET_DIR}/deps 2>/dev/null
if [ -f ${TARGET_DIR}/deps/include/python3.11/Python.h -a -f ${TARGET_DIR}/deps/lib/wasm32-wasi/libpython3.11.a ]; then
echo "Dependencies already downloaded. Reusing..."
else
curl -sL https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/python%2F3.11.3%2B20230428-7d1b259/libpython-3.11.3-wasi-sdk-19.0.tar.gz | tar xzv -C ${TARGET_DIR}/deps
curl -sL https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/python%2F3.11.4%2B20230714-11be424/libpython-3.11.4-wasi-sdk-20.0.tar.gz | tar xzv -C ${TARGET_DIR}/deps
fi

export FULL_TARGET_DIR=$(realpath ${TARGET_DIR})
Expand Down
6 changes: 3 additions & 3 deletions python/tools/wlr-libpy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ fn main() {

Here is a list of the pre-built `wasm32-wasi` static libraries:

- [wasi-sysroot-19.0.tar.gz](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sysroot-19.0.tar.gz) provides some POSIX emulations
- [libclang_rt.builtins-wasm32-wasi-19.0.tar.gz](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/libclang_rt.builtins-wasm32-wasi-19.0.tar.gz) provides some built-ins which may be required by code built via clang (like the `libpython` that we publish)
- [libpython-3.11.3-wasi-sdk-19.0.tar](https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/python%2F3.11.3%2B20230428-7d1b259/libpython-3.11.3-wasi-sdk-19.0.tar.gz) provides our pre-built version of `libpython`
- [wasi-sysroot-20.0.tar.gz](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sysroot-20.0.tar.gz) provides some POSIX emulations
- [libclang_rt.builtins-wasm32-wasi-20.0.tar.gz](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz) provides some built-ins which may be required by code built via clang (like the `libpython` that we publish)
- [libpython-3.11.4-wasi-sdk-20.0.tar](https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/python%2F3.11.4%2B20230714-11be424/libpython-3.11.4-wasi-sdk-20.0.tar.gz) provides our pre-built version of `libpython`

## py_main

Expand Down
6 changes: 3 additions & 3 deletions python/tools/wlr-libpy/src/bld_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ type BoxedError = Box<dyn Error>;

const WASI_DEPS_PATH: &str = "target/wasm32-wasi/wasi-deps";

const WASI_SDK_SYSROOT_URL: &str = "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sysroot-19.0.tar.gz";
const WASI_SDK_CLANG_BUILTINS_URL: &str = "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/libclang_rt.builtins-wasm32-wasi-19.0.tar.gz";
const LIBPYTHON_URL: &str = "https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/python%2F3.11.3%2B20230428-7d1b259/libpython-3.11.3-wasi-sdk-19.0.tar.gz";
const WASI_SDK_SYSROOT_URL: &str = "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sysroot-20.0.tar.gz";
const WASI_SDK_CLANG_BUILTINS_URL: &str = "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz";
const LIBPYTHON_URL: &str = "https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/python%2F3.11.4%2B20230714-11be424/libpython-3.11.4-wasi-sdk-20.0.tar.gz";

pub fn configure_static_libs() -> Result<LibsConfig, BoxedError> {
let mut libs_config = LibsConfig::new();
Expand Down

0 comments on commit cf0f04a

Please sign in to comment.