Skip to content

Commit a48cf23

Browse files
committed
Try Github Actions Again
1 parent 6acb00a commit a48cf23

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

.github/workflows/builds.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
{ platform: linux, arch: x86_64, os: ubuntu-22.04 },
1818
{ platform: linux, arch: aarch64, os: ubuntu-22.04 },
1919
{ platform: windows, arch: x86_64, os: windows-latest },
20-
{ platform: windows, arch: x86_32, os: windows-latest },
2120
{ platform: macos, arch: universal, os: macos-latest },
2221
# { platform: android, arch: arm64, os: ubuntu-22.04 },
2322
# { platform: android, arch: arm32, os: ubuntu-22.04 },
@@ -57,22 +56,26 @@ jobs:
5756

5857
# Get the Kuzu Binaries
5958
- name: Download Kuzu Binaries
59+
shell: bash
6060
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"
6464
;;
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)
6669
KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-windows-x86_64.zip"
6770
;;
68-
macos)
71+
macos-universal)
6972
KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-osx-universal.tar.gz"
7073
;;
71-
android)
74+
android-armv8a)
7275
KUZU_URL="https://github.com/kuzudb/kuzu/releases/download/v0.10.0/libkuzu-android-armv8a.tar.gz"
7376
;;
74-
*)
75-
echo "Unsupported platform: ${{ matrix.target.platform }}"
77+
*)
78+
echo "Unsupported platform: ${{ matrix.target.platform }}-${{ matrix.target.arch }}"
7679
exit 1
7780
;;
7881
esac
@@ -82,10 +85,16 @@ jobs:
8285
- name: Extract Kuzu Binaries
8386
run: |
8487
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
8694
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/
8896
fi
97+
8998
- name: Verify Kuzu Binaries
9099
run: |
91100
ls -l ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
@@ -111,7 +120,6 @@ jobs:
111120
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
112121
run: |
113122
scons target=${{ matrix.target-type }} \
114-
production=${{ matrix.target-type == 'template_release' && 'yes' || 'no' }} \
115123
debug_symbols=${{ matrix.target-type == 'template_debug' && 'yes' || 'no' }} \
116124
platform=${{ matrix.target.platform }} \
117125
arch=${{ matrix.target.arch }} \

0 commit comments

Comments
 (0)