Skip to content

Commit 5588007

Browse files
committed
Fix windows binary extraction
1 parent a48cf23 commit 5588007

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/builds.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,27 @@ jobs:
8282
8383
curl -L -o kuzu_binary.tar.gz "$KUZU_URL"
8484
85-
- name: Extract Kuzu Binaries
85+
- name: Extract Kuzu Binaries (Linux)
86+
if: ${{ matrix.target.platform == 'linux' }}
87+
shell: bash
88+
run: |
89+
tar -xvzf kuzu_binary.tar.gz -C ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
90+
# Rename only for Linux platforms
91+
mv ${{ github.workspace }}/bin/${{ matrix.target.platform }}-${{ matrix.target.arch }}-${{ matrix.float-precision }}-${{ matrix.target-type }}/kuzu/libkuzu.so \
92+
${{ github.workspace }}/bin/${{ matrix.target.platform }}-${{ matrix.target.arch }}-${{ matrix.float-precision }}-${{ matrix.target-type }}/kuzu/libkuzu_${{ matrix.target.arch }}.so
93+
94+
- name: Extract Kuzu Binaries (macOS)
95+
if: ${{ matrix.target.platform == 'macos' }}
96+
shell: bash
97+
run: |
98+
tar -xvzf kuzu_binary.tar.gz -C ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
99+
# No renaming needed for macOS
100+
101+
- name: Extract Kuzu Binaries (Windows)
102+
if: ${{ matrix.target.platform == 'windows' }}
103+
shell: pwsh
86104
run: |
87-
if [[ "${{ matrix.target.platform }}" == "windows" ]]; then
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
94-
else
95-
tar -xvzf kuzu_binary.tar.gz -C ${{ github.workspace }}/bin/${{ matrix.target.platform }}/kuzu/
96-
fi
105+
Expand-Archive -Path kuzu_binary.tar.gz -DestinationPath "${{ github.workspace }}\bin\windows\kuzu\"
97106
98107
- name: Verify Kuzu Binaries
99108
run: |

0 commit comments

Comments
 (0)