Publish npm package with node-addon-api for Windows (#838)
This commit is contained in:
13
.github/workflows/npm-addon-macos.yaml
vendored
13
.github/workflows/npm-addon-macos.yaml
vendored
@@ -61,31 +61,24 @@ jobs:
|
||||
..
|
||||
make -j install
|
||||
|
||||
|
||||
|
||||
- name: Build sherpa-onnx node-addon
|
||||
shell: bash
|
||||
run: |
|
||||
export PKG_CONFIG_PATH=$PWD/build/install:$PKG_CONFIG_PATH
|
||||
|
||||
pkg-config --cflags sherpa-onnx
|
||||
pkg-config --libs sherpa-onnx
|
||||
d=$PWD
|
||||
export SHERPA_ONNX_INSTALL_DIR=$d/build/install
|
||||
|
||||
cd scripts/node-addon-api/
|
||||
|
||||
npm i
|
||||
|
||||
./node_modules/.bin/node-gyp configure build --verbose
|
||||
./node_modules/.bin/cmake-js compile --log-level verbose
|
||||
|
||||
- name: Prepare for publish
|
||||
shell: bash
|
||||
run: |
|
||||
export PKG_CONFIG_PATH=$PWD/build/install:$PKG_CONFIG_PATH
|
||||
|
||||
owner=${{ github.repository_owner }}
|
||||
export owner
|
||||
|
||||
|
||||
ls -lh build/install/lib/
|
||||
echo "---"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user