-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0d47fb
commit 519e3bc
Showing
5 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
echo %* | ||
cargo component build -p wasm_common || exit /b 1 | ||
cargo component build -p pulumi_wasm || exit /b 1 | ||
cargo component build -p pulumi_wasm_provider_random || exit /b 1 | ||
cargo component build -p pulumi_wasm_example_simple || exit /b 1 | ||
cargo build -p pulumi_wasm_runner || exit /b 1 | ||
@REM cargo build -p pulumi_rust_wasm || exit /b | ||
@REM @REM wasm-tools component wit target/wasm32-wasi/debug/pulumi_wasm_example_simple.wasm | ||
@REM | ||
echo F|xcopy /b /v /y ".\target\wasm32-wasi\debug\pulumi_wasm.wasm" ".\target\wasm32-wasi\debug\pulumi-wasm.wasm" || exit /b 1 | ||
echo F|xcopy /b /v /y ".\target\wasm32-wasi\debug\pulumi_wasm_example_simple.wasm" ".\target\wasm32-wasi\debug\pulumi-wasm-example-simple.wasm" || exit /b 1 | ||
echo F|xcopy /b /v /y ".\target\wasm32-wasi\debug\pulumi_wasm_provider_random.wasm" ".\target\wasm32-wasi\debug\pulumi-wasm-provider-random.wasm" || exit /b 1 | ||
@REM | ||
@REM @REM wasm-tools component wit target/wasm32-wasi/debug/pulumi-wasm-example-simple.wasm | ||
@REM @REM wasm-tools component wit target/wasm32-wasi/debug/pulumi-wasm-provider-random.wasm | ||
@REM | ||
wasm-tools compose -o target/wasm32-wasi/debug/composed1.wasm target/wasm32-wasi/debug/pulumi-wasm-example-simple.wasm -d target/wasm32-wasi/debug/pulumi-wasm-provider-random.wasm || exit /b 1 | ||
wasm-tools compose -o target/wasm32-wasi/debug/composed2.wasm target/wasm32-wasi/debug/composed1.wasm -d target/wasm32-wasi/debug/pulumi-wasm.wasm || exit /b 1 | ||
@REM cargo run -p pulumi_wasm_runner -- compile --wasm target/wasm32-wasi/debug/composed2.wasm --output target/wasm32-wasi/debug/composed2.cwasm || exit /b 1 | ||
@REM wasmtime compile -D debug-info=y,coredump=y,address-map=y -o target/wasm32-wasi/debug/composed2.cwasm target/wasm32-wasi/debug/composed2.wasm || exit /b 1 | ||
@REM | ||
@REM cargo build -p pulumi_entrypoint || exit /b | ||
@REM | ||
@REM @REM wasm-tools component wit target/wasm32-wasi/debug/pulumi-wasm-provider-random.wasm | ||
@REM @REM wasm-tools component wit target/wasm32-wasi/debug/pulumi-wasm-example-simple.wasm | ||
@REM | ||
@REM wasm-tools component wit target/wasm32-wasi/debug/composed1.wasm | ||
@REM wasm-tools component wit target/wasm32-wasi/debug/composed2.wasm | ||
@REM | ||
wasm-tools component wit target/wasm32-wasi/debug/composed2.wasm || exit /b 1 | ||
wasm-tools print target/wasm32-wasi/debug/composed1.wasm > composed1.wat || exit /b 1 | ||
wasm-tools print target/wasm32-wasi/debug/composed2.wasm > composed2.wat || exit /b 1 | ||
|
||
@REM cargo build --target wasm32-wasi |
0
run.sh → build.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
set -e | ||
|
||
./run.sh | ||
./build.sh | ||
|
||
cargo run -p pulumi_wasm_runner -- run --wasm target/wasm32-wasi/debug/composed2.wasm |