| 1 | #!/bin/bash |
| 2 | # Builds the nodejs module for manylinux. Invoked by ci/build_linux_artifacts_nodejs.sh. |
| 3 | set -e |
| 4 | ARCH=${1:-x86_64} |
| 5 | |
| 6 | if [ "$ARCH" = "x86_64" ]; then |
| 7 | export OPENSSL_LIB_DIR=/usr/local/lib64/ |
| 8 | else |
| 9 | export OPENSSL_LIB_DIR=/usr/local/lib/ |
| 10 | fi |
| 11 | export OPENSSL_STATIC=1 |
| 12 | export OPENSSL_INCLUDE_DIR=/usr/local/include/openssl |
| 13 | |
| 14 | source $HOME/.bashrc |
| 15 | |
| 16 | cd nodejs |
| 17 | npm ci |
| 18 | npm run build-release |