Build Linux Node.js Module #21
Workflow file for this run
This file contains 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: Build-Linux-NodeJS-Module | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
build-linux-nodejs-x86_64: | |
runs-on: kuzu-self-hosted-linux-building | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install networkx | |
run: /opt/python/cp310-cp310/bin/python -m pip install networkx --user | |
- name: Build Node.js native module | |
run: | | |
make nodejs NUM_THREADS=$(nproc) | |
make install | |
- name: Move Node.js native module | |
working-directory: install/lib/nodejs/kuzu | |
run: mv kuzujs.node kuzujs-linux-x64.node | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux-nodejs-module-x86_64 | |
path: install/lib/nodejs/kuzu/kuzujs-linux-x64.node | |
build-linux-nodejs-aarch64: | |
runs-on: kuzu-self-hosted-linux-building-aarch64 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install networkx | |
run: /opt/python/cp310-cp310/bin/python -m pip install networkx --user | |
- name: Build Node.js native module | |
run: | | |
make nodejs NUM_THREADS=$(nproc) | |
make install | |
- name: Move Node.js native module | |
working-directory: install/lib/nodejs/kuzu | |
run: mv kuzujs.node kuzujs-linux-arm64.node | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux-nodejs-module-aarch64 | |
path: install/lib/nodejs/kuzu/kuzujs-arm64.node |