@@ -33,12 +33,13 @@ jobs:
3333 rust-version : stable${{ matrix.host }}
3434 targets : ${{ matrix.target }}
3535 components : ' rustfmt, clippy'
36+
3637 # download libduckdb
3738 -
uses :
robinraju/[email protected] 3839 name : Download duckdb
3940 with :
4041 repository : " duckdb/duckdb"
41- tag : " v1.0.0 "
42+ tag : " v1.1.1 "
4243 fileName : ${{ matrix.duckdb }}
4344 out-file-path : .
4445
@@ -49,15 +50,25 @@ jobs:
4950 with :
5051 file_path : ${{ github.workspace }}/${{ matrix.duckdb }}
5152 extract_dir : libduckdb
53+
5254 - run : cargo fmt --all -- --check
5355 if : matrix.os == 'ubuntu-latest'
54- - run : cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure
56+
57+ # TODO: remove
58+ - name : Workaround for https://github.com/pola-rs/polars/issues/19063
59+ run : |
60+ cargo update [email protected] --precise 2.5.0 61+
62+ - name : run cargo clippy
5563 if : matrix.os == 'ubuntu-latest'
56- name : run cargo clippy
5764 env :
5865 DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
5966 DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
6067 LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
68+ run : |
69+ cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure
70+
71+
6172 - name : Run cargo-tarpaulin
6273 if : matrix.os == 'ubuntu-latest'
6374 uses :
actions-rs/[email protected] 7081 DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
7182 DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
7283 LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
84+
7385 - name : Upload to codecov.io
7486 if : matrix.os == 'ubuntu-latest'
7587 uses : codecov/codecov-action@v1
@@ -88,19 +100,28 @@ jobs:
88100 with :
89101 name : PATH
90102 value : $env:PATH;${{ github.workspace }}/libduckdb
103+
91104 - name : Run cargo-test
92105 if : matrix.os == 'windows-latest'
93106 run : cargo test --features "modern-full vtab-full vtab-loadable"
94107 env :
95108 DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
96109 DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
110+
97111 - name : Build loadable extension
98112 run : cargo build --example hello-ext --features="vtab-loadable"
99113 env :
100114 DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
101115 DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
102116 LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
103117
118+ - name : Build loadable extension
119+ run : cargo build --example hello-ext-capi --features="vtab-loadable loadable-extension"
120+ env :
121+ DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
122+ DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
123+ LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
124+
104125 Windows :
105126 name : Windows build from source
106127 needs : test
@@ -117,6 +138,7 @@ jobs:
117138 with :
118139 rust-version : stable
119140 targets : x86_64-pc-windows-msvc
141+
120142 - run : cargo install cargo-examples
121143
122144 Sanitizer :
@@ -140,7 +162,9 @@ jobs:
140162 # leak sanitization, but we don't care about backtraces here, so long
141163 # as the other tests have them.
142164 RUST_BACKTRACE : " 0"
143- run : cargo -Z build-std test --features "modern-full extensions-full" --target x86_64-unknown-linux-gnu
165+ run : |
166+ # TODO switch back to modern-full once polars is fixed
167+ cargo -Z build-std test --features "chrono serde_json url r2d2 uuid extensions-full" --target x86_64-unknown-linux-gnu --package duckdb
144168 - name : publish crates --dry-run
145169 uses : katyo/publish-crates@v2
146170 with :
0 commit comments