Skip to content

Commit 6433e60

Browse files
author
Kuzu CI
committed
Rework build pipeline
1 parent 91ba210 commit 6433e60

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ env:
4949
PIP_BREAK_SYSTEM_PACKAGES: 1
5050

5151
jobs:
52+
get-version:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v4
56+
57+
- name: Update nightly version
58+
if: ${{ github.event_name == 'schedule' || github.event.inputs.isNightly == 'true' }}
59+
run: |
60+
python3 -m pip install packaging
61+
python3 update-nightly-build-version.py | grep "New Python dev version:" | awk -F'New Python dev version: ' '{print $2}' | sed 's/\.$//' > version.txt
62+
cat version.txt
63+
working-directory: scripts
64+
65+
- name: Upload version
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: version
69+
path: scripts/version.txt
70+
5271
build-extension:
5372
if: ${{ github.event_name == 'schedule' || github.event.inputs.skipExtensions != 'true' }}
5473
uses: ./.github/workflows/build-and-deploy-extension.yml

.github/workflows/linux-precompiled-bin-workflow.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
required: true
1010
default: false
1111

12+
env:
13+
PIP_BREAK_SYSTEM_PACKAGES: 1
14+
1215
jobs:
1316
build-precompiled-bin-x86_64:
1417
runs-on: kuzu-self-hosted-linux-building-x86_64
@@ -87,3 +90,46 @@ jobs:
8790
with:
8891
name: kuzu_cli-linux-aarch64
8992
path: kuzu_cli-linux-aarch64.tar.gz
93+
94+
build-precompiled-bin-android-armv8a:
95+
runs-on: kuzu-self-hosted-testing
96+
steps:
97+
- uses: actions/checkout@v4
98+
99+
- name: Update nightly version
100+
if: ${{ inputs.isNightly == true }}
101+
run: |
102+
python3 -m pip install packaging
103+
python3 update-nightly-build-version.py
104+
working-directory: scripts
105+
106+
- name: Build precompiled binaries
107+
run: |
108+
mkdir build
109+
cd build
110+
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a ..
111+
make -j$(nproc)
112+
cd ..
113+
cmake --install build --prefix install
114+
115+
- name: Collect artifacts
116+
run: |
117+
mv install/include/kuzu.h .
118+
mv install/include/kuzu.hpp .
119+
mv install/lib/libkuzu.so .
120+
mv install/bin/kuzu .
121+
122+
- name: Create tarball
123+
run: |
124+
tar -czvf libkuzu-android-armv8a.tar.gz kuzu.h kuzu.hpp libkuzu.so
125+
tar -czvf kuzu_cli-android-armv8a.tar.gz kuzu
126+
127+
- uses: actions/upload-artifact@v4
128+
with:
129+
name: libkuzu-android-armv8a
130+
path: libkuzu-android-armv8a.tar.gz
131+
132+
- uses: actions/upload-artifact@v4
133+
with:
134+
name: kuzu_cli-android-armv8a
135+
path: kuzu_cli-android-armv8a.tar.gz

.github/workflows/mac-wheel-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python3 package_tar.py kuzu.tar.gz
3333
3434
- name: Build wheels for Apple Silicon
35-
uses: pypa/cibuildwheel@v2.19.1
35+
uses: pypa/cibuildwheel@v2.22
3636
env:
3737
CIBW_SKIP: pp*
3838
CIBW_ARCHS_MACOS: arm64
@@ -67,7 +67,7 @@ jobs:
6767
python3 package_tar.py kuzu.tar.gz
6868
6969
- name: Build wheels for Intel
70-
uses: pypa/cibuildwheel@v2.19.1
70+
uses: pypa/cibuildwheel@v2.22
7171
env:
7272
CIBW_SKIP: pp* cp36*
7373
CIBW_ARCHS_MACOS: x86_64

0 commit comments

Comments
 (0)