@@ -33,12 +33,13 @@ jobs:
33
33
rust-version : stable${{ matrix.host }}
34
34
targets : ${{ matrix.target }}
35
35
components : ' rustfmt, clippy'
36
+
36
37
# download libduckdb
37
38
-
uses :
robinraju/[email protected]
38
39
name : Download duckdb
39
40
with :
40
41
repository : " duckdb/duckdb"
41
- tag : " v1.0.0 "
42
+ tag : " v1.1.1 "
42
43
fileName : ${{ matrix.duckdb }}
43
44
out-file-path : .
44
45
@@ -49,15 +50,25 @@ jobs:
49
50
with :
50
51
file_path : ${{ github.workspace }}/${{ matrix.duckdb }}
51
52
extract_dir : libduckdb
53
+
52
54
- run : cargo fmt --all -- --check
53
55
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
55
63
if : matrix.os == 'ubuntu-latest'
56
- name : run cargo clippy
57
64
env :
58
65
DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
59
66
DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
60
67
LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
68
+ run : |
69
+ cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure
70
+
71
+
61
72
- name : Run cargo-tarpaulin
62
73
if : matrix.os == 'ubuntu-latest'
63
74
uses :
actions-rs/[email protected]
70
81
DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
71
82
DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
72
83
LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
84
+
73
85
- name : Upload to codecov.io
74
86
if : matrix.os == 'ubuntu-latest'
75
87
uses : codecov/codecov-action@v1
@@ -88,19 +100,28 @@ jobs:
88
100
with :
89
101
name : PATH
90
102
value : $env:PATH;${{ github.workspace }}/libduckdb
103
+
91
104
- name : Run cargo-test
92
105
if : matrix.os == 'windows-latest'
93
106
run : cargo test --features "modern-full vtab-full vtab-loadable"
94
107
env :
95
108
DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
96
109
DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
110
+
97
111
- name : Build loadable extension
98
112
run : cargo build --example hello-ext --features="vtab-loadable"
99
113
env :
100
114
DUCKDB_LIB_DIR : ${{ github.workspace }}/libduckdb
101
115
DUCKDB_INCLUDE_DIR : ${{ github.workspace }}/libduckdb
102
116
LD_LIBRARY_PATH : ${{ github.workspace }}/libduckdb
103
117
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
+
104
125
Windows :
105
126
name : Windows build from source
106
127
needs : test
@@ -117,6 +138,7 @@ jobs:
117
138
with :
118
139
rust-version : stable
119
140
targets : x86_64-pc-windows-msvc
141
+
120
142
- run : cargo install cargo-examples
121
143
122
144
Sanitizer :
@@ -140,7 +162,9 @@ jobs:
140
162
# leak sanitization, but we don't care about backtraces here, so long
141
163
# as the other tests have them.
142
164
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
144
168
- name : publish crates --dry-run
145
169
uses : katyo/publish-crates@v2
146
170
with :
0 commit comments