Fix build warnings (#3742) #1378
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test-node-addon-npm-aarch64 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '.github/workflows/test-nodejs-addon-npm-aarch64.yaml' | |
| - '.github/scripts/test-nodejs-addon-npm.sh' | |
| - 'cmake/**' | |
| - 'sherpa-onnx/csrc/*' | |
| - 'sherpa-onnx/c-api/*' | |
| - 'scripts/node-addon-api/**' | |
| - 'scripts/node-addon-api/*.js' | |
| - 'nodejs-addon-examples/**' | |
| workflow_dispatch: | |
| concurrency: | |
| group: test-node-addon-npm-aarch64-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-node-addon-npm-aarch64: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Update version | |
| shell: bash | |
| run: | | |
| ./new-release.sh | |
| git diff . | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| with: | |
| platforms: arm64 | |
| - name: Test sherpa-onnx | |
| shell: bash | |
| run: | | |
| docker run --rm \ | |
| --platform linux/arm64 \ | |
| --volume ${{ github.workspace }}/:/shared/ \ | |
| quay.io/pypa/manylinux2014_aarch64 \ | |
| bash -c ' | |
| git config --global --add safe.directory /shared | |
| echo $HOME | |
| uname -a | |
| cat /etc/*release | |
| cmake --version | |
| curl -sL https://rpm.nodesource.com/setup_16.x | bash - | |
| yum install -y nodejs | |
| node --version | |
| cd /shared | |
| d=nodejs-addon-examples | |
| echo "dir: $d" | |
| cd $d | |
| npm install --verbose | |
| git status | |
| ls -lh | |
| ls -lh node_modules | |
| export DYLD_LIBRARY_PATH=$PWD/node_modules/sherpa-onnx-darwin-x64:$DYLD_LIBRARY_PATH | |
| export DYLD_LIBRARY_PATH=$PWD/node_modules/sherpa-onnx-darwin-arm64:$DYLD_LIBRARY_PATH | |
| export LD_LIBRARY_PATH=$PWD/node_modules/sherpa-onnx-linux-x64:$LD_LIBRARY_PATH | |
| export LD_LIBRARY_PATH=$PWD/node_modules/sherpa-onnx-linux-arm64:$LD_LIBRARY_PATH | |
| cd ../ | |
| .github/scripts/test-nodejs-addon-npm.sh | |
| ' |