@@ -59,7 +59,12 @@ _clean-stale-wasm:
5959 if compgen -G " {{repo-root}}/target/$profile /build/hyperlight-wasm-*" > /dev/null && \
6060 [ ! -f " {{repo-root}}/target/hyperlight-wasm-runtime/x86_64-hyperlight-none/$profile /hyperlight-wasm-runtime" ]; then
6161 echo " Cleaning stale hyperlight-wasm $profile build artifacts..."
62- just wasm invalidate-wit-caches
62+ rm -rf {{repo-root}}/target/hyperlight-wasm-runtime {{repo-root}}/target/hls \
63+ {{repo-root}}/target/* /build/hyperlight-wasm-* {{repo-root}}/target/* /.fingerprint/hyperlight-wasm-* \
64+ {{repo-root}}/target/* /build/hyperlight-host-* {{repo-root}}/target/* /.fingerprint/hyperlight-host-* \
65+ {{repo-root}}/src/sdk/python/wasm_backend/target/hyperlight-wasm-runtime \
66+ {{repo-root}}/src/sdk/python/wasm_backend/target/* /build/hyperlight-wasm-* \
67+ {{repo-root}}/src/sdk/python/wasm_backend/target/* /.fingerprint/hyperlight-wasm-*
6368 break
6469 fi
6570 done
@@ -72,7 +77,16 @@ _clean-stale-wasm:
7277 if ((Get-ChildItem -Path $bp -Filter ' hyperlight-wasm-*' -ErrorAction SilentlyContinue) -and \
7378 -not (Test-Path $rp)) { \
7479 Write-Host (' Cleaning stale hyperlight-wasm ' + $profile + ' build artifacts...' ); \
75- just wasm invalidate-wit-caches; \
80+ Remove-Item -Recurse -Force -ErrorAction SilentlyContinue ' {{ repo-root}} /target/hyperlight-wasm-runtime' ,' {{ repo-root}} /target/hls' ; \
81+ foreach ($t in @(' {{ repo-root}} /target' , ' {{ repo-root}} /src/sdk/python/wasm_backend/target' )) { \
82+ foreach ($p in @(' debug' , ' release' )) { \
83+ $bd = " $t/$p/build" ; $fd = " $t/$p/.fingerprint" ; \
84+ if (Test-Path $bd) { Get-ChildItem -Path $bd -Filter ' hyperlight-wasm-*' -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force; \
85+ Get-ChildItem -Path $bd -Filter ' hyperlight-host-*' -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force }; \
86+ if (Test-Path $fd) { Get-ChildItem -Path $fd -Filter ' hyperlight-wasm-*' -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force; \
87+ Get-ChildItem -Path $fd -Filter ' hyperlight-host-*' -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force }; \
88+ }; \
89+ }; \
7690 break; \
7791 } \
7892 }
0 commit comments