diff --git a/.github/workflows/node.yaml b/.github/workflows/node.yaml index d69b0602..55400620 100644 --- a/.github/workflows/node.yaml +++ b/.github/workflows/node.yaml @@ -48,6 +48,7 @@ jobs: build: >- set -e && rustup target add x86_64-unknown-linux-gnu && + cargo install cargo-patch && cd bindings/nodejs && yarn lerna exec "yarn build --target x86_64-unknown-linux-gnu" --concurrency 1 --stream --no-prefix && strip ./*.node @@ -72,6 +73,7 @@ jobs: docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 build: >- rustup target add aarch64-unknown-linux-gnu && + cargo install cargo-patch && cd bindings/nodejs && yarn lerna exec "yarn build --target aarch64-unknown-linux-gnu" --concurrency 1 --stream --no-prefix && llvm-strip ./*.node diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 1f23b644..b16e60e4 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -38,6 +38,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.10' + - name: Install Cargo patch + run: cargo install cargo-patch - name: Build wheels uses: PyO3/maturin-action@v1 with: diff --git a/core/engine/src/handler/function/runtime.rs b/core/engine/src/handler/function/runtime.rs index 6eb15f7d..63ad68a3 100644 --- a/core/engine/src/handler/function/runtime.rs +++ b/core/engine/src/handler/function/runtime.rs @@ -11,6 +11,6 @@ static JS_BUNDLE: Bundle = embed! { pub(crate) fn create_runtime() -> anyhow::Result { let runtime = Runtime::new().context("Failed to create runtime")?; runtime.set_loader(JS_BUNDLE, JS_BUNDLE); - + Ok(runtime) }