Skip to content

Commit 68d1441

Browse files
committed
Don't install unused components
1 parent 7c2066f commit 68d1441

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/actions/setup-builder/action.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ runs:
3838
/usr/local/cargo/registry/cache/
3939
/usr/local/cargo/git/db/
4040
key: cargo-cache3-${{ hashFiles('**/Cargo.toml') }}
41+
restore-keys: cargo-cache3-
4142
- name: Generate lockfile
4243
shell: bash
4344
run: cargo fetch
@@ -48,6 +49,7 @@ runs:
4849
# and thus are specific for a particular OS, arch and rust version.
4950
path: /github/home/target
5051
key: ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-${{ hashFiles('**/Cargo.lock') }}
52+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-
5153
- name: Install Build Dependencies
5254
shell: bash
5355
run: |

.github/workflows/rust.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ jobs:
164164
run: |
165165
rustup toolchain install ${{ matrix.rust }}
166166
rustup default ${{ matrix.rust }}
167-
rustup component add rustfmt
168167
- name: Run tests
169168
shell: bash
170169
run: |
@@ -198,7 +197,7 @@ jobs:
198197
rust-version: ${{ matrix.rust }}
199198
- name: Setup Clippy
200199
run: |
201-
rustup component add rustfmt clippy
200+
rustup component add clippy
202201
- name: Run clippy
203202
run: |
204203
cargo clippy --features test_common --features prettyprint --features=async --all-targets --workspace -- -D warnings
@@ -258,7 +257,6 @@ jobs:
258257
run: |
259258
rustup toolchain install ${{ matrix.rust }}
260259
rustup default ${{ matrix.rust }}
261-
rustup component add rustfmt clippy
262260
- name: Cache Cargo
263261
uses: actions/cache@v3
264262
with:
@@ -321,7 +319,6 @@ jobs:
321319
run: |
322320
rustup toolchain install ${{ matrix.rust }}
323321
rustup override set ${{ matrix.rust }}
324-
rustup component add rustfmt
325322
rustup target add wasm32-unknown-unknown
326323
rustup target add wasm32-wasi
327324
- name: Build arrow crate

0 commit comments

Comments
 (0)