Skip to content

Commit 6527bad

Browse files
committed
do not distribute the wasm_runtime binary
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent e5b18ea commit 6527bad

3 files changed

Lines changed: 4 additions & 24 deletions

File tree

.github/workflows/dep_cargo_publish.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ jobs:
2424
with:
2525
rust-toolchain: "1.85.0"
2626

27-
- name: Download Wasm Host (debug)
28-
uses: actions/download-artifact@v4
29-
with:
30-
name: wasm-runtime-debug
31-
path: ${{ github.workspace }}/src/hyperlight_wasm/redist/debug/
32-
33-
- name: Download Wasm Host (release)
34-
uses: actions/download-artifact@v4
35-
with:
36-
name: wasm-runtime-release
37-
path: ${{ github.workspace }}/src/hyperlight_wasm/redist/release/
38-
3927
# github actions that run against PRs check out a ref to the PR merge branch
4028
# we need to switch / create a branch for cargo ws to run late
4129
- name: set-branch-for-PRs

Justfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ build target=default-target features="": (build-wasm-runtime target) (fmt-check)
2424
mkdir-redist target=default-target:
2525
mkdir {{ mkdir-arg }} x64
2626
mkdir {{ mkdir-arg }} x64/{{ target }}
27-
mkdir {{ mkdir-arg }} src/hyperlight_wasm/redist
28-
mkdir {{ mkdir-arg }} src/hyperlight_wasm/redist/{{ target }}
2927

30-
build-wasm-runtime target=default-target: (mkdir-redist target)
31-
cd ./src/wasm_runtime && cargo build --verbose --profile={{ if target == "debug" {"dev"} else { target } }}
32-
cp ./src/wasm_runtime/target/x86_64-unknown-none/{{target}}/wasm_runtime ./x64/{{target}}/wasm_runtime
33-
cp ./src/wasm_runtime/target/x86_64-unknown-none/{{target}}/wasm_runtime ./src/hyperlight_wasm/redist/{{target}}/wasm_runtime
28+
build-wasm-runtime target=default-target:
29+
cd ./src/wasm_runtime && cargo build --verbose --profile={{ if target == "debug" {"dev"} else { target } }} && rm -R target
3430

3531
build-wasm-examples target=default-target:
36-
{{ build-wasm-examples-command}} {{target}}
32+
{{ build-wasm-examples-command }} {{target}}
3733

3834
build-rust-wasm-examples target=default-target: (mkdir-redist target)
3935
rustup target add wasm32-unknown-unknown

src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,7 @@ mod tests {
221221
.expect("Failed to get CARGO_MANIFEST_DIR or RUST_DIR_FOR_DEBUGGING_TESTS env var")
222222
});
223223

224-
let relative_path = if filename == "wasm_runtime" {
225-
"redist"
226-
} else {
227-
"../../x64"
228-
};
224+
let relative_path = "../../x64";
229225

230226
let filename_path = Path::new(&proj_dir)
231227
.join(relative_path)

0 commit comments

Comments
 (0)