From deb5290492408d65314b4ff849fd1884c4192173 Mon Sep 17 00:00:00 2001 From: dorianzheng Date: Mon, 12 Jan 2026 20:48:23 +0800 Subject: [PATCH] fix(ci): source cargo env after make setup in node SDK build After building guest on Linux, Rust is removed to save disk space. make setup reinstalls Rust, but the PATH isn't updated in the same shell. This adds sourcing of cargo env to make cargo available for the build. --- .github/workflows/build-node-sdk.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-node-sdk.yml b/.github/workflows/build-node-sdk.yml index 2aefb6b29..7792ee5fa 100644 --- a/.github/workflows/build-node-sdk.yml +++ b/.github/workflows/build-node-sdk.yml @@ -85,6 +85,8 @@ jobs: - name: Build Node.js package run: | make setup + # Source cargo env (Linux reinstalls Rust after cleanup, PATH needs update) + [ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" if [ "${{ runner.os }}" = "Linux" ]; then KEEP_GUEST_BIN=1 make dist:node else