|  | 
| 96 | 96 |       - name: Setup Rust toolchain | 
| 97 | 97 |         uses: ./.github/actions/setup-builder | 
| 98 | 98 |         with: | 
| 99 |  | -          rust-version: stable | 
|  | 99 | +          rust-version: stable         | 
| 100 | 100 |       - name: Run tests (excluding doctests) | 
| 101 | 101 |         run: cargo test --lib --tests --bins --features avro,json,backtrace | 
| 102 |  | -        env: | 
| 103 |  | -          # do not produce debug symbols to keep memory usage down | 
| 104 |  | -          # hardcoding other profile params to avoid profile override values | 
| 105 |  | -          # More on Cargo profiles https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings | 
| 106 |  | -          RUSTFLAGS: "-C debuginfo=0 -C opt-level=0 -C incremental=false -C codegen-units=256" | 
| 107 |  | -          RUST_BACKTRACE: "1" | 
| 108 |  | -          # avoid rust stack overflows on tpc-ds tests | 
| 109 |  | -          RUST_MINSTACK: "3000000" | 
| 110 | 102 |       - name: Verify Working Directory Clean | 
| 111 | 103 |         run: git diff --exit-code | 
| 112 | 104 | 
 | 
| @@ -284,80 +276,31 @@ jobs: | 
| 284 | 276 |       - uses: actions/checkout@v4 | 
| 285 | 277 |         with: | 
| 286 | 278 |           submodules: true | 
| 287 |  | -      - name: Install protobuf compiler | 
| 288 |  | -        shell: bash | 
| 289 |  | -        run: | | 
| 290 |  | -          mkdir -p $HOME/d/protoc | 
| 291 |  | -          cd $HOME/d/protoc | 
| 292 |  | -          export PROTO_ZIP="protoc-21.4-win64.zip" | 
| 293 |  | -          curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.4/$PROTO_ZIP | 
| 294 |  | -          unzip $PROTO_ZIP | 
| 295 |  | -          export PATH=$PATH:$HOME/d/protoc/bin | 
| 296 |  | -          protoc.exe --version | 
| 297 |  | -      # TODO: this won't cache anything, which is expensive. Setup this action | 
| 298 |  | -      # with a OS-dependent path. | 
| 299 | 279 |       - name: Setup Rust toolchain | 
| 300 |  | -        run: | | 
| 301 |  | -          rustup update stable | 
| 302 |  | -          rustup toolchain install stable | 
| 303 |  | -          rustup default stable | 
| 304 |  | -          rustup component add rustfmt | 
|  | 280 | +        uses: ./.github/actions/setup-windows-builder | 
| 305 | 281 |       - name: Run tests (excluding doctests) | 
| 306 | 282 |         shell: bash | 
| 307 | 283 |         run: | | 
| 308 | 284 |           export PATH=$PATH:$HOME/d/protoc/bin | 
| 309 | 285 |           cargo test --lib --tests --bins --features avro,json,backtrace | 
| 310 | 286 |           cd datafusion-cli | 
| 311 | 287 |           cargo test --lib --tests --bins --all-features | 
| 312 |  | -        env: | 
| 313 |  | -          # do not produce debug symbols to keep memory usage down | 
| 314 |  | -          # use higher optimization level to overcome Windows rust slowness for tpc-ds | 
| 315 |  | -          # and speed builds: https://github.com/apache/arrow-datafusion/issues/8696 | 
| 316 |  | -          # Cargo profile docs https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings | 
| 317 |  | -          RUSTFLAGS: "-C debuginfo=0 -C opt-level=1 -C target-feature=+crt-static -C incremental=false -C codegen-units=256" | 
| 318 |  | -          RUST_BACKTRACE: "1" | 
| 319 |  | -          # avoid rust stack overflows on tpc-ds tests | 
| 320 |  | -          RUST_MINSTACK: "3000000" | 
|  | 288 | +
 | 
| 321 | 289 |   macos: | 
| 322 |  | -    name: cargo test (mac) | 
|  | 290 | +    name: cargo test (macos) | 
| 323 | 291 |     runs-on: macos-latest | 
| 324 | 292 |     steps: | 
| 325 | 293 |       - uses: actions/checkout@v4 | 
| 326 | 294 |         with: | 
| 327 |  | -          submodules: true | 
| 328 |  | -      - name: Install protobuf compiler | 
| 329 |  | -        shell: bash | 
| 330 |  | -        run: | | 
| 331 |  | -          mkdir -p $HOME/d/protoc | 
| 332 |  | -          cd $HOME/d/protoc | 
| 333 |  | -          export PROTO_ZIP="protoc-21.4-osx-x86_64.zip" | 
| 334 |  | -          curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.4/$PROTO_ZIP | 
| 335 |  | -          unzip $PROTO_ZIP | 
| 336 |  | -          echo "$HOME/d/protoc/bin" >> $GITHUB_PATH | 
| 337 |  | -          export PATH=$PATH:$HOME/d/protoc/bin | 
| 338 |  | -          protoc --version | 
| 339 |  | -      # TODO: this won't cache anything, which is expensive. Setup this action | 
| 340 |  | -      # with a OS-dependent path. | 
|  | 295 | +          submodules: true       | 
| 341 | 296 |       - name: Setup Rust toolchain | 
| 342 |  | -        run: | | 
| 343 |  | -          rustup update stable | 
| 344 |  | -          rustup toolchain install stable | 
| 345 |  | -          rustup default stable | 
| 346 |  | -          rustup component add rustfmt | 
|  | 297 | +        uses: ./.github/actions/setup-macos-builder        | 
| 347 | 298 |       - name: Run tests (excluding doctests) | 
| 348 | 299 |         shell: bash | 
| 349 | 300 |         run: | | 
| 350 | 301 |           cargo test --lib --tests --bins --features avro,json,backtrace | 
| 351 | 302 |           cd datafusion-cli | 
| 352 |  | -          cargo test --lib --tests --bins --all-features | 
| 353 |  | -        env: | 
| 354 |  | -          # do not produce debug symbols to keep memory usage down | 
| 355 |  | -          # hardcoding other profile params to avoid profile override values | 
| 356 |  | -          # More on Cargo profiles https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings | 
| 357 |  | -          RUSTFLAGS: "-C debuginfo=0 -C opt-level=0 -C incremental=false -C codegen-units=256" | 
| 358 |  | -          RUST_BACKTRACE: "1" | 
| 359 |  | -          # avoid rust stack overflows on tpc-ds tests | 
| 360 |  | -          RUST_MINSTACK: "3000000" | 
|  | 303 | +          cargo test --lib --tests --bins --all-features   | 
| 361 | 304 | 
 | 
| 362 | 305 |   test-datafusion-pyarrow: | 
| 363 | 306 |     name: cargo test pyarrow (amd64) | 
|  | 
0 commit comments