Skip to content

Commit

Permalink
rebuild on tar file change (#163)
Browse files Browse the repository at this point in the history
* rebuild on tar file change

* run examples
  • Loading branch information
wangfenjin authored May 21, 2023
1 parent cfda58b commit f6028d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ jobs:
# as the other tests have them.
RUST_BACKTRACE: "0"
run: cargo -Z build-std test --features "modern-full extensions-full" --target x86_64-unknown-linux-gnu
- name: Build loadable extension
run: cargo build --example hello-ext --features="vtab-loadable bundled"
- run: cargo install cargo-examples
- run: cargo examples --skip hello-ext --features=bundled
- uses: wangfenjin/publish-crates@main
name: cargo publish --dry-run
with:
Expand Down
2 changes: 2 additions & 0 deletions libduckdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ mod build_bundled {
// Since the manifest controls the set of files, we require it to be changed to know whether
// to rebuild the project
println!("cargo:rerun-if-changed={}/manifest.json", lib_name);
// Make sure to rebuild the project if tar file changed
println!("cargo:rerun-if-changed=duckdb.tar.gz");

cfg.include(lib_name);

Expand Down

0 comments on commit f6028d9

Please sign in to comment.