-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kuzudb:master' into master
- Loading branch information
Showing
816 changed files
with
4,405,962 additions
and
17,758 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build-Linux-NodeJS-Module | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-linux-nodejs: | ||
runs-on: kuzu-self-hosted-linux-building | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- 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@v3 | ||
with: | ||
name: linux-nodejs-module | ||
path: tools/nodejs_api/package/kuzujs-linux-x64.node |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build-Mac-NodeJS-Module | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-mac-nodejs: | ||
runs-on: self-hosted-mac-arm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- 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 for Apple Silicon | ||
working-directory: tools/nodejs_api/package | ||
run: npm i | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: 11.0 | ||
ARCHFLAGS: "-arch arm64" | ||
|
||
- name: Move Node.js native module | ||
working-directory: tools/nodejs_api/ | ||
run: mv package/kuzujs.node kuzujs-darwin-arm64.node | ||
|
||
- name: Clean up | ||
working-directory: tools/nodejs_api/ | ||
run: rm -rf package | ||
|
||
- name: Extract tarball | ||
working-directory: tools/nodejs_api | ||
run: tar -xvzf kuzu-source.tar.gz | ||
|
||
- name: Build Node.js native module for Intel | ||
working-directory: tools/nodejs_api/package | ||
run: npm i | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: 10.15 | ||
ARCHFLAGS: "-arch x86_64" | ||
|
||
- name: Move Node.js native module | ||
working-directory: tools/nodejs_api/ | ||
run: mv package/kuzujs.node kuzujs-darwin-x64.node | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-nodejs-module | ||
path: tools/nodejs_api/kuzujs-darwin-*.node |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build-Windows-NodeJS-Module | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-windows-nodejs: | ||
runs-on: self-hosted-windows | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Create Node.js source distribution | ||
working-directory: tools/nodejs_api | ||
run: | | ||
node clean | ||
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 | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
npm i | ||
- name: Move Node.js native module | ||
working-directory: tools/nodejs_api/package | ||
run: ren kuzujs.node kuzujs-win32-x64.node | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: windows-nodejs-module | ||
path: tools/nodejs_api/package/kuzujs-win32-x64.node |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build-Windows-Precompiled-Binaries | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
packageVersion: | ||
description: "Version of output package" | ||
required: true | ||
default: "0.0.1" | ||
|
||
env: | ||
PACKAGE_VERSION: ${{ github.event.inputs.packageVersion }} | ||
|
||
jobs: | ||
build-precompiled-bin: | ||
runs-on: self-hosted-windows | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install networkx | ||
run: python.exe -m pip install networkx --user | ||
|
||
- name: Build precompiled binaries | ||
run: python.exe build.py | ||
working-directory: ./scripts/pre-compiled-bins/ | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: libkuzu-${{ github.event.inputs.packageVersion }}-windows-x86_64 | ||
path: | | ||
./scripts/pre-compiled-bins/kuzu.h | ||
./scripts/pre-compiled-bins/kuzu.hpp | ||
./scripts/pre-compiled-bins/kuzu_shared.dll | ||
./scripts/pre-compiled-bins/kuzu_shared.lib | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: kuzu_cli-${{ github.event.inputs.packageVersion }}-windows-x86_64 | ||
path: ./scripts/pre-compiled-bins/kuzu.exe | ||
|
||
- name: Clean up | ||
run: rm -rf ./scripts/pre-compiled-bins/kuzu ./scripts/pre-compiled-bins/headers ./scripts/pre-compiled-bins/kuzu_shared.dll ./scripts/pre-compiled-bins/kuzu_shared.lib ./scripts/pre-compiled-bins/kuzu.h ./scripts/pre-compiled-bins/kuzu.hpp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build-Windows-Wheels | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pythonPackageVersion: | ||
description: "Version of output Python package" | ||
required: true | ||
default: "0.0.1" | ||
|
||
env: | ||
PYTHON_PACKAGE_VERSION: ${{ github.event.inputs.pythonPackageVersion }} | ||
|
||
jobs: | ||
build-wheels: | ||
runs-on: self-hosted-windows | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Create source distribution | ||
working-directory: ./scripts/pip-package/ | ||
shell: cmd | ||
run: | | ||
if exist wheelhouse rmdir /s /q wheelhouse | ||
mkdir wheelhouse | ||
python.exe package_tar.py | ||
# Manually set up cibuildwheel instead of importing their | ||
# action since there seems to be an issue with quoting | ||
# --only when inputs.only is empty. | ||
# See https://github.com/pypa/cibuildwheel/blob/main/action.yml | ||
- uses: actions/setup-python@v4 | ||
id: python | ||
with: | ||
python-version: "3.7 - 3.11" | ||
update-environment: false | ||
|
||
- name: Build Wheels | ||
env: | ||
CIBW_ARCHS_WINDOWS: AMD64 | ||
CIBW_SKIP: pp* cp36* | ||
CIBW_BUILD_VERBOSITY: 3 | ||
shell: cmd | ||
working-directory: ./scripts/pip-package/ | ||
run: | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
|
||
pipx run --spec cibuildwheel cibuildwheel | ||
"kuzu.tar.gz" | ||
--output-dir "wheelhouse" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./scripts/pip-package/wheelhouse/*.whl |
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
Oops, something went wrong.