|
54 | 54 | path: /github/home/target
|
55 | 55 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}-
|
56 | 56 | - name: Setup Rust toolchain
|
57 |
| - run: | |
58 |
| - rustup toolchain install ${{ matrix.rust }} |
59 |
| - rustup default ${{ matrix.rust }} |
60 |
| - rustup component add rustfmt |
| 57 | + uses: ./.github/actions/setup-builder |
| 58 | + with: |
| 59 | + rust-version: ${{ matrix.rust }} |
61 | 60 | - name: Build workspace in debug mode
|
62 | 61 | run: |
|
63 | 62 | cargo build
|
@@ -117,10 +116,9 @@ jobs:
|
117 | 116 | # this key equals the ones on `linux-build-lib` for re-use
|
118 | 117 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}
|
119 | 118 | - name: Setup Rust toolchain
|
120 |
| - run: | |
121 |
| - rustup toolchain install ${{ matrix.rust }} |
122 |
| - rustup default ${{ matrix.rust }} |
123 |
| - rustup component add rustfmt |
| 119 | + uses: ./.github/actions/setup-builder |
| 120 | + with: |
| 121 | + rust-version: ${{ matrix.rust }} |
124 | 122 | - name: Run tests
|
125 | 123 | run: |
|
126 | 124 | export ARROW_TEST_DATA=$(pwd)/testing/data
|
@@ -285,10 +283,9 @@ jobs:
|
285 | 283 | echo "LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
286 | 284 | python -m pip install pyarrow
|
287 | 285 | - name: Setup Rust toolchain
|
288 |
| - run: | |
289 |
| - rustup toolchain install ${{ matrix.rust }} |
290 |
| - rustup default ${{ matrix.rust }} |
291 |
| - rustup component add rustfmt |
| 286 | + uses: ./.github/actions/setup-builder |
| 287 | + with: |
| 288 | + rust-version: ${{ matrix.rust }} |
292 | 289 | - name: Run tests
|
293 | 290 | run: |
|
294 | 291 | cd datafusion
|
@@ -343,10 +340,12 @@ jobs:
|
343 | 340 | # this key equals the ones on `linux-build-lib` for re-use
|
344 | 341 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}
|
345 | 342 | - name: Setup Rust toolchain
|
| 343 | + uses: ./.github/actions/setup-builder |
| 344 | + with: |
| 345 | + rust-version: ${{ matrix.rust }} |
| 346 | + - name: Install Clippy |
346 | 347 | run: |
|
347 |
| - rustup toolchain install ${{ matrix.rust }} |
348 |
| - rustup default ${{ matrix.rust }} |
349 |
| - rustup component add rustfmt clippy |
| 348 | + rustup component add clippy |
350 | 349 | - name: Run clippy
|
351 | 350 | run: |
|
352 | 351 | cargo clippy --all-targets --workspace -- -D warnings
|
@@ -420,10 +419,9 @@ jobs:
|
420 | 419 | # this key equals the ones on `linux-build-lib` for re-use
|
421 | 420 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}
|
422 | 421 | - name: Setup Rust toolchain
|
423 |
| - run: | |
424 |
| - rustup toolchain install ${{ matrix.rust }} |
425 |
| - rustup default ${{ matrix.rust }} |
426 |
| - rustup component add rustfmt |
| 422 | + uses: ./.github/actions/setup-builder |
| 423 | + with: |
| 424 | + rust-version: ${{ matrix.rust }} |
427 | 425 | - name: Run tests
|
428 | 426 | run: |
|
429 | 427 | export ARROW_TEST_DATA=$(pwd)/testing/data
|
@@ -466,9 +464,9 @@ jobs:
|
466 | 464 | # this key equals the ones on `linux-build-lib` for re-use
|
467 | 465 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}
|
468 | 466 | - name: Setup Rust toolchain
|
469 |
| - run: | |
470 |
| - rustup toolchain install ${{ matrix.rust }} |
471 |
| - rustup default ${{ matrix.rust }} |
| 467 | + uses: ./.github/actions/setup-builder |
| 468 | + with: |
| 469 | + rust-version: ${{ matrix.rust }} |
472 | 470 | - name: Install cargo-tomlfmt
|
473 | 471 | run: |
|
474 | 472 | which cargo-tomlfmt || cargo install cargo-tomlfmt
|
|
0 commit comments