File tree 1 file changed +5
-3
lines changed
.github/actions/setup-builder 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ 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
+ - name : Generate lockfile
42
+ shell : bash
43
+ run : cargo fetch
41
44
- name : Cache Rust dependencies
42
45
uses : actions/cache@v3
43
46
with :
44
47
# these represent compiled steps of both dependencies and arrow
45
48
# and thus are specific for a particular OS, arch and rust version.
46
49
path : /github/home/target
47
- key : ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-
50
+ key : ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-${{ hashFiles('**/Cargo.lock') }}
48
51
- name : Install Build Dependencies
49
52
shell : bash
50
53
run : |
56
59
echo "Installing ${{ inputs.rust-version }}"
57
60
rustup toolchain install ${{ inputs.rust-version }}
58
61
rustup default ${{ inputs.rust-version }}
59
- rustup component add rustfmt
60
62
echo "CARGO_TARGET_DIR=/github/home/target" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments