Skip to content

Commit 501720a

Browse files
committed
Add wit-bindgen
Signed-off-by: James Sturtevant <[email protected]>
1 parent 54037e8 commit 501720a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/dep_build_wasm_examples.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ jobs:
7777
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/wasm-clang-builder:buildcache
7878
cache-to: ${{ env.CACHE_TO }}
7979
- name: Build Modules
80-
run: just build-wasm-examples release
80+
run: |
81+
just ensure-tools
82+
just build-wasm-examples release
8183
shell: bash
8284
working-directory: src/wasmsamples
8385
- name: Upload Wasm Modules

Justfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ make-vendor-tar:
1515
-C ./src wasm_runtime hyperlight_wasm_macro
1616

1717
ensure-tools:
18-
cargo install --locked wasm-tools --version 1.235.0
18+
cargo install wasm-tools --locked --version 1.235.0
1919
cargo install cargo-component --locked --version 0.21.1
20+
cargo install wit-bindgen --locked --version 0.43.0
2021

2122
build-all target=default-target: (build target) (build-wasm-examples target) (build-rust-wasm-examples target) (build-wasm-runtime target) (build-rust-component-examples target)
2223

@@ -30,7 +31,7 @@ mkdir-redist target=default-target:
3031
build-wasm-runtime target=default-target:
3132
cd ./src/wasm_runtime && cargo build --verbose --profile={{ if target == "debug" {"dev"} else { target } }} && rm -R target
3233

33-
build-wasm-examples target=default-target: (ensure-tools)
34+
build-wasm-examples target=default-target:
3435
wasm-tools component wit ./src/wasmsamples/components/runcomponent.wit -w -o ./src/wasmsamples/components/runcomponent-world.wasm
3536
{{ build-wasm-examples-command }} {{target}}
3637

0 commit comments

Comments
 (0)