This repository was archived by the owner on Oct 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 405
82 lines (67 loc) · 2.4 KB
/
linux-nodejs-workflow.yml
File metadata and controls
82 lines (67 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Build Linux Node.js Module
on:
workflow_dispatch:
workflow_call:
inputs:
isNightly:
type: boolean
required: true
default: false
jobs:
build-linux-nodejs-x86_64:
runs-on: kuzu-self-hosted-linux-building-x86_64
steps:
- uses: actions/checkout@v4
- name: Update nightly version
if: ${{ inputs.isNightly == true }}
run: |
/opt/python/cp310-cp310/bin/python -m pip install packaging
/opt/python/cp310-cp310/bin/python update-nightly-build-version.py
working-directory: scripts
- name: Create Node.js source distribution
working-directory: tools/nodejs_api
run: |
rm -rf kuzu-source.tar.gz package *.node
node package
- name: Extract tarball
working-directory: tools/nodejs_api
run: tar -xvzf kuzu-source.tar.gz
- name: Build Node.js native module
working-directory: tools/nodejs_api/package
run: |
npm i
- name: Move Node.js native module
working-directory: tools/nodejs_api/package
run: mv kuzujs.node kuzujs-linux-x64.node
- uses: actions/upload-artifact@v4
with:
name: linux-nodejs-module-x86_64
path: tools/nodejs_api/package/kuzujs-linux-x64.node
build-linux-nodejs-aarch64:
runs-on: kuzu-self-hosted-linux-building-aarch64
steps:
- uses: actions/checkout@v4
- name: Update nightly version
if: ${{ inputs.isNightly == true }}
run: |
/opt/python/cp310-cp310/bin/python -m pip install packaging
/opt/python/cp310-cp310/bin/python update-nightly-build-version.py
working-directory: scripts
- name: Create Node.js source distribution
working-directory: tools/nodejs_api
run: |
rm -rf kuzu-source.tar.gz package *.node
node package
- name: Extract tarball
working-directory: tools/nodejs_api
run: tar -xvzf kuzu-source.tar.gz
- name: Build Node.js native module
working-directory: tools/nodejs_api/package
run: npm i
- name: Move Node.js native module
working-directory: tools/nodejs_api/package
run: mv kuzujs.node kuzujs-linux-arm64.node
- uses: actions/upload-artifact@v4
with:
name: linux-nodejs-module-aarch64
path: tools/nodejs_api/package/kuzujs-linux-arm64.node