@@ -42,13 +42,15 @@ build target=default-target:
4242# build testing guest binaries
4343guests : build-and-move-rust-guests build-and-move-c-guests
4444
45+ ensure-cargo-hyperlight :
46+ command -v cargo-hyperlight >/ dev/ null 2 >&1 || cargo install --locked cargo-hyperlight
47+
4548witguest-wit :
4649 command -v wasm-tools >/ dev/ null 2 >&1 || cargo install --locked wasm-tools
4750 cd src/ tests/ rust_guests/ witguest && wasm-tools component wit guest.wit -w -o interface.wasm
4851 cd src/ tests/ rust_guests/ witguest && wasm-tools component wit two_worlds.wit -w -o twoworlds.wasm
4952
50- build-rust-guests target = default-target features = " ": (witguest-wit )
51- command -v cargo-hyperlight >/ dev/ null 2 >&1 || cargo install --locked cargo-hyperlight
53+ build-rust-guests target = default-target features = " ": (witguest-wit ) (ensure-cargo-hyperlight )
5254 cd src/ tests/ rust_guests/ simpleguest && cargo hyperlight build {{ if features == " " {' ' } else if features== " no-default-features" {" --no-default-features" } else {" --no-default-features -F " + features } }} --profile={{ if target == " debug" { " dev" } else { target } }}
5355 cd src/ tests/ rust_guests/ dummyguest && cargo hyperlight build {{ if features == " " {' ' } else if features== " no-default-features" {" --no-default-features" } else {" --no-default-features -F " + features } }} --profile={{ if target == " debug" { " dev" } else { target } }}
5456 cd src/ tests/ rust_guests/ witguest && cargo hyperlight build {{ if features == " " {' ' } else if features== " no-default-features" {" --no-default-features" } else {" --no-default-features -F " + features } }} --profile={{ if target == " debug" { " dev" } else { target } }}
@@ -259,8 +261,7 @@ clippy target=default-target: (witguest-wit)
259261clippyw target = default-target : (witguest-wit )
260262 {{ cargo-cmd }} clippy --all-targets --all-features --target x86 _64 -pc-windows-gnu --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings
261263
262- clippy-guests target = default-target : (witguest-wit )
263- command -v cargo-hyperlight >/ dev/ null 2 >&1 || cargo install --locked cargo-hyperlight
264+ clippy-guests target = default-target : (witguest-wit ) (ensure-cargo-hyperlight )
264265 cd src/ tests/ rust_guests/ simpleguest && cargo hyperlight clippy --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings
265266 cd src/ tests/ rust_guests/ witguest && cargo hyperlight clippy --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings
266267
@@ -314,7 +315,7 @@ tar-headers: (build-rust-capi) # build-rust-capi is a dependency because we need
314315 tar -zcvf include.tar.gz -C {{ root}} / src/ hyperlight_guest_bin/ third_party/ musl/ include musl/ arch / x86 _64 printf/ printf.h -C {{ root}} / src/ hyperlight_guest_capi include
315316
316317tar-static-lib : (build-rust-capi " release" ) (build-rust-capi " debug" )
317- tar -zcvf hyperlight-guest-c-api-linux.tar.gz -C {{ root}} / target/ x86 _64 -unknown -none/ release/ libhyperlight_guest_capi.a -C {{ root}} / target/ x86 _64 -unknown -none/ debug/ libhyperlight_guest_capi.a
318+ tar -zcvf hyperlight-guest-c-api-linux.tar.gz -C {{ root}} / target/ x86 _64 -hyperlight -none/ release/ libhyperlight_guest_capi.a -C {{ root}} / target/ x86 _64 -hyperlight -none/ debug/ libhyperlight_guest_capi.a
318319
319320# Create release notes for the given tag. The expected format is a v-prefixed version number, e.g. v0.2.0
320321# For prereleases, the version should be "dev-latest"
0 commit comments