Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Download duckdb library from GitHub #513

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ _files$
^src/librstrtmgr\.a$
^compile_commands\.json$
^\.cache$
^src/duckdb$
10 changes: 10 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ set -ex

cd $(dirname $0)/src

# Download duckdb from GitHub if missing
if ! [ -d duckdb ]; then
version=$(egrep '^Version:' ../DESCRIPTION | sed -r 's/^Version: ([0-9]+[.][0-9]+[.][0-9]+)([.][0-9]+)?$/\1/')
# Download tagged version
curl -OL https://github.com/duckdb/duckdb-r/archive/refs/tags/v${version}.tar.gz
tar -xzf v${version}.tar.gz
mv duckdb-r-${version}/src/duckdb .
rm -rf duckdb-r-${version} v${version}.tar.gz
fi

# The purpose of this is to avoid rebuilding duckdb in every CI/CD run.
# We set the DUCKDB_R_PREBUILT_ARCHIVE environment variable to a file path
# that contains a .tar of all object files.
Expand Down
Loading