17
17
{ platform: linux, arch: x86_64, os: ubuntu-22.04 },
18
18
{ platform: linux, arch: aarch64, os: ubuntu-22.04 },
19
19
{ platform: windows, arch: x86_64, os: windows-latest },
20
- { platform: windows, arch: x86_32, os: windows-latest },
21
20
{ platform: macos, arch: universal, os: macos-latest },
22
21
# { platform: android, arch: arm64, os: ubuntu-22.04 },
23
22
# { platform: android, arch: arm32, os: ubuntu-22.04 },
@@ -57,22 +56,26 @@ jobs:
57
56
58
57
# Get the Kuzu Binaries
59
58
- name : Download Kuzu Binaries
59
+ shell : bash
60
60
run : |
61
- case ${{ matrix.target.platform }} in
62
- linux)
63
- KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-linux-${{ matrix.target.arch }} .tar.gz"
61
+ case " ${{ matrix.target.platform }}-${{ matrix.target.arch }}" in
62
+ linux-x86_64 )
63
+ KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-linux-x86_64 .tar.gz"
64
64
;;
65
- windows)
65
+ linux-aarch64)
66
+ KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-linux-aarch64.tar.gz"
67
+ ;;
68
+ windows-x86_64)
66
69
KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-windows-x86_64.zip"
67
70
;;
68
- macos)
71
+ macos-universal )
69
72
KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-osx-universal.tar.gz"
70
73
;;
71
- android)
74
+ android-armv8a )
72
75
KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-android-armv8a.tar.gz"
73
76
;;
74
- *)
75
- echo "Unsupported platform: ${{ matrix.target.platform }}"
77
+ *)
78
+ echo "Unsupported platform: ${{ matrix.target.platform }}-${{ matrix.target.arch }} "
76
79
exit 1
77
80
;;
78
81
esac
@@ -82,10 +85,16 @@ jobs:
82
85
- name : Extract Kuzu Binaries
83
86
run : |
84
87
if [[ "${{ matrix.target.platform }}" == "windows" ]]; then
85
- unzip kuzu_binary.tar.gz -d ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
88
+ unzip kuzu_binary.tar.gz -d ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
89
+ else if [[ "${{ matrix.target.platform }}" == "linux" ]]; then
90
+ tar -xvzf kuzu_binary.tar.gz -C ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
91
+ # Rename only for Linux platforms
92
+ mv ${{ github.workspace }}/bin/${{ matrix.target.platform }}-${{ matrix.target.arch }}-${{ matrix.float-precision }}-${{ matrix.target-type }}/kuzu/libkuzu.so \
93
+ ${{ github.workspace }}/bin/${{ matrix.target.platform }}-${{ matrix.target.arch }}-${{ matrix.float-precision }}-${{ matrix.target-type }}/kuzu/libkuzu_${{ matrix.target.arch }}.so
86
94
else
87
- tar -xvzf kuzu_binary.tar.gz -C ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
95
+ tar -xvzf kuzu_binary.tar.gz -C ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
88
96
fi
97
+
89
98
- name : Verify Kuzu Binaries
90
99
run : |
91
100
ls -l ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
@@ -111,7 +120,6 @@ jobs:
111
120
SCONS_CACHE : ${{ github.workspace }}/.scons-cache/
112
121
run : |
113
122
scons target=${{ matrix.target-type }} \
114
- production=${{ matrix.target-type == 'template_release' && 'yes' || 'no' }} \
115
123
debug_symbols=${{ matrix.target-type == 'template_debug' && 'yes' || 'no' }} \
116
124
platform=${{ matrix.target.platform }} \
117
125
arch=${{ matrix.target.arch }} \
0 commit comments