Skip to content

Commit 8a3754d

Browse files
committed
fix: try both
1 parent 68830ec commit 8a3754d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pypi.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ jobs:
3939
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4040
manylinux: ${{ matrix.platform.manylinux }}
4141
before-script-linux: |
42-
yum install -y unzip
42+
if command -v yum &> /dev/null; then
43+
yum install -y unzip
44+
elif command -v apt-get &> /dev/null; then
45+
apt-get update && apt-get install -y unzip
46+
else
47+
echo "No supported package manager found."
48+
exit 1
49+
fi
4350
curl -L -O https://github.com/duckdb/duckdb/releases/download/v1.2.0/libduckdb-linux-${{ matrix.platform.duckdb-slug }}.zip
4451
unzip libduckdb-linux-${{ matrix.platform.duckdb-slug }}.zip -d /opt/duckdb
4552
export DUCKDB_LIB_DIR=/opt/duckdb

0 commit comments

Comments
 (0)