From fded52a04e656d4524a6da100bb646c03859f515 Mon Sep 17 00:00:00 2001 From: Simon Davies Date: Fri, 3 Jul 2026 23:18:29 +0100 Subject: [PATCH] fix:add musl target to publish worklfow Signed-off-by: Simon Davies --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 43851e8..972b288 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -75,8 +75,14 @@ jobs: rustup target add x86_64-unknown-linux-musl # Rebuild hyperlight-js NAPI addon targeting musl in release mode. - # deps/js-host-api is a symlink into the hyperlight-js release-tag checkout. + # deps/js-host-api is a symlink into the hyperlight-js release-tag checkout, + # which pins its own Rust toolchain via rust-toolchain.toml (currently 1.90). + # rustup honours that pin from the cwd, so the musl target must be added to + # THAT toolchain here — the top-level `rustup target add` only covered the + # default 1.89 toolchain, so the cross-compile failed with + # "error[E0463]: can't find crate for `core`". cd "$GITHUB_WORKSPACE/deps/js-host-api" + rustup target add x86_64-unknown-linux-musl npx napi build --platform --release --strip --target x86_64-unknown-linux-musl # Rebuild hyperlight-analysis NAPI addon targeting musl in release mode.