Skip to content

Commit

Permalink
Renaming packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Mar 10, 2024
1 parent b0d47fb commit 519e3bc
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 36 deletions.
34 changes: 33 additions & 1 deletion build.bat
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.
2 changes: 1 addition & 1 deletion entrypoint.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

@REM cargo run -- run --wasm target/wasm32-wasi/debug/composed2.wasm

.\run.bat && cargo run -p pulumi_wasm_runner -- run --wasm target/wasm32-wasi/debug/composed2.wasm
.\build.bat && cargo run -p pulumi_wasm_runner -- run --wasm target/wasm32-wasi/debug/composed2.wasm
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

./run.sh
./build.sh

cargo run -p pulumi_wasm_runner -- run --wasm target/wasm32-wasi/debug/composed2.wasm
33 changes: 0 additions & 33 deletions run.bat

This file was deleted.

0 comments on commit 519e3bc

Please sign in to comment.