Skip to content

Commit b256797

Browse files
authored
Upgrade to DataFusion 55 (#274)
1 parent 78f1c0d commit b256797

7 files changed

Lines changed: 259 additions & 229 deletions

File tree

‎.github/workflows/ci-wasm.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
# The Pyodide release to build for. Its Python version, Emscripten version,
1818
# and Rust toolchain all come from this release's cross-build environment.
1919
PYODIDE_VERSION: "314.0.7"
20+
# The oldest Rust that compiles our dependencies. DataFusion 55 needs 1.94,
21+
# newer than Pyodide 314.0.7's 1.93.0, so the build uses whichever of the
22+
# two is newer. Both are stable releases; the smoke test below loads the
23+
# wheel in Pyodide, which catches a toolchain Pyodide can't load.
24+
MIN_RUST_TOOLCHAIN: "1.94.0"
2025

2126
jobs:
2227
build:
@@ -34,7 +39,10 @@ jobs:
3439
run: |
3540
pip install pyodide-build
3641
pyodide xbuildenv install "$PYODIDE_VERSION"
37-
echo "RUST_TOOLCHAIN=$(pyodide config get rust_toolchain)" >> "$GITHUB_ENV"
42+
PYODIDE_RUST="$(pyodide config get rust_toolchain)"
43+
RUST_TOOLCHAIN="$(printf '%s\n' "$PYODIDE_RUST" "$MIN_RUST_TOOLCHAIN" | sort -V | tail -n 1)"
44+
echo "Pyodide's Rust: $PYODIDE_RUST; building with: $RUST_TOOLCHAIN"
45+
echo "RUST_TOOLCHAIN=$RUST_TOOLCHAIN" >> "$GITHUB_ENV"
3846
3947
- name: Install Rust
4048
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)