Skip to content

Commit fded52a

Browse files
committed
fix:add musl target to publish worklfow
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent a598777 commit fded52a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@ jobs:
7575
rustup target add x86_64-unknown-linux-musl
7676
7777
# Rebuild hyperlight-js NAPI addon targeting musl in release mode.
78-
# deps/js-host-api is a symlink into the hyperlight-js release-tag checkout.
78+
# deps/js-host-api is a symlink into the hyperlight-js release-tag checkout,
79+
# which pins its own Rust toolchain via rust-toolchain.toml (currently 1.90).
80+
# rustup honours that pin from the cwd, so the musl target must be added to
81+
# THAT toolchain here — the top-level `rustup target add` only covered the
82+
# default 1.89 toolchain, so the cross-compile failed with
83+
# "error[E0463]: can't find crate for `core`".
7984
cd "$GITHUB_WORKSPACE/deps/js-host-api"
85+
rustup target add x86_64-unknown-linux-musl
8086
npx napi build --platform --release --strip --target x86_64-unknown-linux-musl
8187
8288
# Rebuild hyperlight-analysis NAPI addon targeting musl in release mode.

0 commit comments

Comments
 (0)