Skip to content

Commit 889ef7f

Browse files
committed
Add CI check that FFI example matches datafusion version
1 parent 694a5d8 commit 889ef7f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v5
4646

47+
- name: Verify example datafusion version
48+
run: |
49+
MAIN_VERSION=$(grep -A 1 "name = \"datafusion-common\"" Cargo.lock | grep "version = " | head -1 | sed 's/.*version = "\(.*\)"/\1/')
50+
EXAMPLE_VERSION=$(grep -A 1 "name = \"datafusion-common\"" examples/datafusion-ffi-example/Cargo.lock | grep "version = " | head -1 | sed 's/.*version = "\(.*\)"/\1/')
51+
echo "Main crate datafusion version: $MAIN_VERSION"
52+
echo "FFI example datafusion version: $EXAMPLE_VERSION"
53+
54+
if [ "$MAIN_VERSION" != "$EXAMPLE_VERSION" ]; then
55+
echo "❌ Error: FFI example datafusion versions don't match!"
56+
exit 1
57+
fi
58+
4759
- name: Setup Rust Toolchain
4860
uses: dtolnay/rust-toolchain@stable
4961
id: rust-toolchain

0 commit comments

Comments
 (0)