From 925f7f4a11341fb950f4f6cd6390187b780ba419 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 9 Jul 2024 08:27:57 +0900 Subject: feat: add examples/compile-php-to-wasm --- tools/compile-php-to-wasm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tools/compile-php-to-wasm.sh (limited to 'tools/compile-php-to-wasm.sh') diff --git a/tools/compile-php-to-wasm.sh b/tools/compile-php-to-wasm.sh new file mode 100755 index 0000000..19d7499 --- /dev/null +++ b/tools/compile-php-to-wasm.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -eux + +cd examples/compile-php-to-wasm +docker build -t nsfisis-waddiwasi-php-wasm . +docker create --name nsfisis-waddiwasi-php-wasm-tmp-container nsfisis-waddiwasi-php-wasm +docker cp nsfisis-waddiwasi-php-wasm-tmp-container:/src/php-wasm.js . +docker cp nsfisis-waddiwasi-php-wasm-tmp-container:/src/php-wasm.wasm . +docker rm nsfisis-waddiwasi-php-wasm-tmp-container -- cgit v1.2.3-70-g09d2