forked from kuzudb/kuzu
-
Notifications
You must be signed in to change notification settings - Fork 2
113 lines (90 loc) · 3.15 KB
/
Copy pathbuild-extensions.yml
File metadata and controls
113 lines (90 loc) · 3.15 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Build Extensions
on:
workflow_dispatch:
workflow_call:
inputs:
x86_64LinuxOnly:
type: boolean
required: false
default: false
jobs:
build-linux-extensions-x86_64:
runs-on: kuzu-self-hosted-linux-building-x86_64
steps:
- uses: actions/checkout@v4
- name: Build precompiled extensions
run: make extension-release NUM_THREADS=$(nproc)
- name: Collect built artifacts
run: /opt/python/cp310-cp310/bin/python scripts/collect-extensions.py
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: kuzu-extensions_linux-x86_64
path: extension-artifacts
build-linux-extensions-aarch64:
if: ${{ inputs.x86_64LinuxOnly != true }}
runs-on: kuzu-self-hosted-linux-building-aarch64
steps:
- uses: actions/checkout@v4
- name: Build precompiled extensions
run: make extension-release NUM_THREADS=$(nproc)
- name: Collect built artifacts
run: /opt/python/cp310-cp310/bin/python scripts/collect-extensions.py
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: kuzu-extensions_linux-aarch64
path: extension-artifacts
build-mac-extensions-arm64:
if: ${{ inputs.x86_64LinuxOnly != true }}
runs-on: self-hosted-mac-arm64
steps:
- uses: actions/checkout@v4
- name: Build precompiled extensions
run: make extension-release NUM_THREADS=$(sysctl -n hw.logicalcpu)
env:
MACOSX_DEPLOYMENT_TARGET: 11.0
CMAKE_OSX_ARCHITECTURES: "arm64"
- name: Collect built artifacts
run: python3 scripts/collect-extensions.py
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: kuzu-extensions_osx-arm64
path: extension-artifacts
build-mac-extensions-x86_64:
if: ${{ inputs.x86_64LinuxOnly != true }}
runs-on: self-hosted-mac-x64
steps:
- uses: actions/checkout@v4
- name: Build precompiled extensions
run: make extension-release NUM_THREADS=$(sysctl -n hw.logicalcpu)
env:
MACOSX_DEPLOYMENT_TARGET: 11.0
CMAKE_OSX_ARCHITECTURES: "x86_64"
- name: Collect built artifacts
run: python3 scripts/collect-extensions.py
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: kuzu-extensions_osx-x86_64
path: extension-artifacts
build-windows-extensions-x86_64:
if: ${{ inputs.x86_64LinuxOnly != true }}
runs-on: self-hosted-windows
env:
NUM_THREADS: 18
steps:
- uses: actions/checkout@v4
- name: Build precompiled extensions
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
make extension-release
- name: Collect built artifacts
run: python scripts/collect-extensions.py
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: kuzu-extensions_win-x86_64
path: extension-artifacts