66
66
# the changes to `Cargo.lock` after building with the updated manifest.
67
67
cargo check --profile ci --workspace --all-targets --features integration-tests --locked
68
68
69
- # cargo check common, functions and substrait with no default features
70
- linux-cargo-check-no-default-features :
71
- name : cargo check no default features
69
+ # Check datafusion-common features
70
+ #
71
+ # Ensure via `cargo check` that the crate can be built with a
72
+ # subset of the features packages enabled.
73
+ linux-datafusion-common-features :
74
+ name : cargo check datafusion-common features
72
75
needs : linux-build-lib
73
76
runs-on : ubuntu-latest
74
77
container :
@@ -79,28 +82,68 @@ jobs:
79
82
uses : ./.github/actions/setup-builder
80
83
with :
81
84
rust-version : stable
82
- - name : Check datafusion without default features
83
- # Some of the test binaries require the parquet feature still
84
- # run: cargo check --all-targets --no-default-features -p datafusion
85
- run : cargo check --profile ci --no-default-features -p datafusion
86
-
87
- - name : Check datafusion-common without default features
85
+ - name : Check datafusion-common (no-default-features)
88
86
run : cargo check --profile ci --all-targets --no-default-features -p datafusion-common
87
+ # Note: don't check other feature flags as datafusion-common is not typically used standalone
89
88
90
- - name : Check datafusion-functions without default features
91
- run : cargo check --profile ci --all-targets --no-default-features -p datafusion-functions
92
-
93
- - name : Check datafusion-substrait without default features
89
+ # Check datafusion-substrait features
90
+ #
91
+ # Ensure via `cargo check` that the crate can be built with a
92
+ # subset of the features packages enabled.
93
+ linux-datafusion-substrait-features :
94
+ name : cargo check datafusion-substrait features
95
+ needs : linux-build-lib
96
+ runs-on : ubuntu-latest
97
+ container :
98
+ image : amd64/rust
99
+ steps :
100
+ - uses : actions/checkout@v4
101
+ - name : Setup Rust toolchain
102
+ uses : ./.github/actions/setup-builder
103
+ with :
104
+ rust-version : stable
105
+ - name : Check datafusion-substrait (no-default-features)
94
106
run : cargo check --profile ci --all-targets --no-default-features -p datafusion-substrait
107
+ - name : Check datafusion-substrait (physical)
108
+ run : cargo check --profile ci --all-targets --no-default-features -p datafusion-substrait --features=physical
109
+ - name : Install cmake
110
+ run : |
111
+ # note the builder setup runs apt-get update / installs protobuf compiler
112
+ apt-get install -y cmake
113
+ - name : Check datafusion-substrait (protoc)
114
+ run : cargo check --profile ci --all-targets --no-default-features -p datafusion-substrait --features=protoc
95
115
96
- - name : Check workspace in debug mode
97
- run : cargo check --profile ci --all-targets --workspace
98
-
99
- - name : Check workspace with additional features
100
- run : cargo check --profile ci --workspace --benches --features avro,json,integration-tests
101
-
102
- # cargo check datafusion to ensure that the datafusion crate can be built with only a
103
- # subset of the function packages enabled.
116
+ # Check datafusion-proto features
117
+ #
118
+ # Ensure via `cargo check` that the crate can be built with a
119
+ # subset of the features packages enabled.
120
+ linux-datafusion-proto-features :
121
+ name : cargo check datafusion-proto features
122
+ needs : linux-build-lib
123
+ runs-on : ubuntu-latest
124
+ container :
125
+ image : amd64/rust
126
+ steps :
127
+ - uses : actions/checkout@v4
128
+ - name : Setup Rust toolchain
129
+ uses : ./.github/actions/setup-builder
130
+ with :
131
+ rust-version : stable
132
+ - name : Check datafusion-proto (no-default-features)
133
+ run : cargo check --profile ci --all-targets --no-default-features -p datafusion-proto
134
+ # fails due to https://github.com/apache/datafusion/issues/15157
135
+ # - name: Check datafusion-proto (json)
136
+ # run: cargo check --profile ci --all-targets --no-default-features -p datafusion-proto --features=json
137
+ - name : Check datafusion-proto (parquet)
138
+ run : cargo check --profile ci --all-targets --no-default-features -p datafusion-proto --features=parquet
139
+ - name : Check datafusion-proto (avro)
140
+ run : cargo check --profile ci --all-targets --no-default-features -p datafusion-proto --features=avro
141
+
142
+
143
+ # Check datafusion crate features
144
+ #
145
+ # Ensure via `cargo check` that the crate can be built with a
146
+ # subset of the features packages enabled.
104
147
linux-cargo-check-datafusion :
105
148
name : cargo check datafusion
106
149
needs : linux-build-lib
@@ -113,6 +156,11 @@ jobs:
113
156
uses : ./.github/actions/setup-builder
114
157
with :
115
158
rust-version : stable
159
+ - name : Check datafusion (no-default-features)
160
+ # Some of the test binaries require the parquet feature still
161
+ # run: cargo check --all-targets --no-default-features -p datafusion
162
+ run : cargo check --profile ci --no-default-features -p datafusion
163
+
116
164
- name : Check datafusion (nested_expressions)
117
165
run : cargo check --profile ci --no-default-features --features=nested_expressions -p datafusion
118
166
@@ -134,8 +182,10 @@ jobs:
134
182
- name : Check datafusion (string_expressions)
135
183
run : cargo check --profile ci --no-default-features --features=string_expressions -p datafusion
136
184
137
- # cargo check datafusion-functions to ensure that the datafusion-functions crate can be built with
138
- # only a subset of the function packages enabled.
185
+ # Check datafusion-functions crate features
186
+ #
187
+ # Ensure via `cargo check` that the crate can be built with a
188
+ # subset of the features packages enabled.
139
189
linux-cargo-check-datafusion-functions :
140
190
name : cargo check functions
141
191
needs : linux-build-lib
@@ -148,6 +198,9 @@ jobs:
148
198
uses : ./.github/actions/setup-builder
149
199
with :
150
200
rust-version : stable
201
+ - name : Check datafusion-functions (no-default-features)
202
+ run : cargo check --profile ci --all-targets --no-default-features -p datafusion-functions
203
+
151
204
- name : Check datafusion-functions (crypto)
152
205
run : cargo check --profile ci --all-targets --no-default-features --features=crypto_expressions -p datafusion-functions
153
206
0 commit comments