|
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 |
@@ -116,10 +115,9 @@ jobs: |
116 | 115 | # this key equals the ones on `linux-build-lib` for re-use |
117 | 116 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} |
118 | 117 | - name: Setup Rust toolchain |
119 | | - run: | |
120 | | - rustup toolchain install ${{ matrix.rust }} |
121 | | - rustup default ${{ matrix.rust }} |
122 | | - rustup component add rustfmt |
| 118 | + uses: ./.github/actions/setup-builder |
| 119 | + with: |
| 120 | + rust-version: ${{ matrix.rust }} |
123 | 121 | - name: Run tests |
124 | 122 | run: | |
125 | 123 | export ARROW_TEST_DATA=$(pwd)/testing/data |
@@ -329,10 +327,12 @@ jobs: |
329 | 327 | # this key equals the ones on `linux-build-lib` for re-use |
330 | 328 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} |
331 | 329 | - name: Setup Rust toolchain |
| 330 | + uses: ./.github/actions/setup-builder |
| 331 | + with: |
| 332 | + rust-version: ${{ matrix.rust }} |
| 333 | + - name: Install Clippy |
332 | 334 | run: | |
333 | | - rustup toolchain install ${{ matrix.rust }} |
334 | | - rustup default ${{ matrix.rust }} |
335 | | - rustup component add rustfmt clippy |
| 335 | + rustup component add clippy |
336 | 336 | - name: Run clippy |
337 | 337 | run: | |
338 | 338 | cargo clippy --all-targets --workspace -- -D warnings |
@@ -372,10 +372,9 @@ jobs: |
372 | 372 | # this key equals the ones on `linux-build-lib` for re-use |
373 | 373 | key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} |
374 | 374 | - name: Setup Rust toolchain |
375 | | - run: | |
376 | | - rustup toolchain install ${{ matrix.rust }} |
377 | | - rustup default ${{ matrix.rust }} |
378 | | - rustup component add rustfmt |
| 375 | + uses: ./.github/actions/setup-builder |
| 376 | + with: |
| 377 | + rust-version: ${{ matrix.rust }} |
379 | 378 | - name: Maximize build space (disk space limitations) |
380 | 379 | run: | |
381 | 380 | echo "Disk Space before cleanup" |
|
0 commit comments