Skip to content
Merged
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
7 changes: 7 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[env]
# Downloads the official prebuilt libduckdb for the build target instead of
# compiling DuckDB's C++ amalgamation from source, which otherwise costs
# 10+ minutes and several GB of disk on every clean build. Requires the
# duckdb crate's "bundled" feature to stay off (see src-tauri/Cargo.toml) --
# libduckdb-sys only reads this var on the non-bundled build path.
DUCKDB_DOWNLOAD_LIB = "1"
6 changes: 6 additions & 0 deletions .github/workflows/cli-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
run: cargo build --release --bin treq

- name: Run CLI with filesystem writes denied
env:
# DUCKDB_DOWNLOAD_LIB (repo-wide via .cargo/config.toml) links duckdb
# dynamically; libduckdb-sys's rpath link-arg doesn't propagate from
# its build script into this binary, so point the loader at the
# prebuilt dylib libduckdb-sys copies alongside the other deps.
DYLD_LIBRARY_PATH: ${{ github.workspace }}/target/release/deps
run: |
sandbox-exec \
-p '(version 1) (allow default) (deny file-write*)' \
Expand Down
Loading
Loading