-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- name: Install duckdb | ||
shell: bash | ||
run: | | ||
if ! command -v unzip &> /dev/null; then | ||
apt-get update && apt-get install -y unzip | ||
fi | ||
if [ ! -d "duckdb_lib" ]; then | ||
mkdir duckdb_lib | ||
else | ||
rm -rf duckdb_lib | ||
mkdir duckdb_lib | ||
echo "Directory $dir already exists." | ||
fi | ||
if [ -f "libduckdb-linux-amd64.zip" ]; then | ||
# File exists, remove it | ||
rm "libduckdb-linux-amd64.zip" | ||
fi | ||
wget "https://github.com/duckdb/duckdb/releases/download/v1.0.0/libduckdb-linux-amd64.zip" | ||
unzip libduckdb-linux-amd64.zip -d duckdb_lib | ||
cp duckdb_lib/lib*.so* /usr/local/lib/ | ||
ldconfig | ||
rm libduckdb-linux-amd64.zip | ||
echo "$(pwd)/duckdb_lib" | ||
export DUCKDB_LIB_DIR="$(pwd)/duckdb_lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters