File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,19 @@ runs:
37
37
/usr/local/cargo/registry/index/
38
38
/usr/local/cargo/registry/cache/
39
39
/usr/local/cargo/git/db/
40
- key : cargo-cache3-
40
+ key : cargo-cache3-${{ hashFiles('**/Cargo.toml') }}
41
+ restore-keys : cargo-cache3-
42
+ - name : Generate lockfile
43
+ shell : bash
44
+ run : cargo fetch
41
45
- name : Cache Rust dependencies
42
46
uses : actions/cache@v3
43
47
with :
44
48
# these represent compiled steps of both dependencies and arrow
45
49
# and thus are specific for a particular OS, arch and rust version.
46
50
path : /github/home/target
47
- key : ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-
51
+ 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 }}-
48
53
- name : Install Build Dependencies
49
54
shell : bash
50
55
run : |
56
61
echo "Installing ${{ inputs.rust-version }}"
57
62
rustup toolchain install ${{ inputs.rust-version }}
58
63
rustup default ${{ inputs.rust-version }}
59
- rustup component add rustfmt
60
64
echo "CARGO_TARGET_DIR=/github/home/target" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ jobs:
164
164
run : |
165
165
rustup toolchain install ${{ matrix.rust }}
166
166
rustup default ${{ matrix.rust }}
167
- rustup component add rustfmt
168
167
- name : Run tests
169
168
shell : bash
170
169
run : |
@@ -198,7 +197,7 @@ jobs:
198
197
rust-version : ${{ matrix.rust }}
199
198
- name : Setup Clippy
200
199
run : |
201
- rustup component add rustfmt clippy
200
+ rustup component add clippy
202
201
- name : Run clippy
203
202
run : |
204
203
cargo clippy --features test_common --features prettyprint --features=async --all-targets --workspace -- -D warnings
@@ -258,7 +257,6 @@ jobs:
258
257
run : |
259
258
rustup toolchain install ${{ matrix.rust }}
260
259
rustup default ${{ matrix.rust }}
261
- rustup component add rustfmt clippy
262
260
- name : Cache Cargo
263
261
uses : actions/cache@v3
264
262
with :
@@ -321,7 +319,6 @@ jobs:
321
319
run : |
322
320
rustup toolchain install ${{ matrix.rust }}
323
321
rustup override set ${{ matrix.rust }}
324
- rustup component add rustfmt
325
322
rustup target add wasm32-unknown-unknown
326
323
rustup target add wasm32-wasi
327
324
- name : Build arrow crate
You can’t perform that action at this time.
0 commit comments