diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58938c6..acdda28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,11 +90,14 @@ jobs: working-directory: bindings/node run: | npm ci - # Generates binding.js/binding.d.ts and the host arm64 slice. - npx napi build --platform --release --js binding.js --dts binding.d.ts + # The package's own build script generates binding.js/binding.d.ts + # and the host arm64 slice; napi build --platform passes the host + # triple to cargo, so that dylib lands under target//release + # (an explicit --target build skips generating the loader files). + npm run build cargo build --release --target x86_64-apple-darwin lipo -create -output llm-proxy.darwin-universal.node \ - target/release/libllm_proxy_node.dylib \ + target/aarch64-apple-darwin/release/libllm_proxy_node.dylib \ target/x86_64-apple-darwin/release/libllm_proxy_node.dylib node --test test/