File tree 3 files changed +7934
-11
lines changed
3 files changed +7934
-11
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,19 @@ jobs:
42
42
- uses : actions/checkout@v4
43
43
with :
44
44
submodules : true
45
+ - name : Cache
46
+ uses : actions/cache@v4
47
+ with :
48
+ path : |
49
+ ~/.cargo/bin/
50
+ ~/.cargo/registry/index/
51
+ ~/.cargo/registry/cache/
52
+ ~/.cargo/git/db/
53
+ target/
54
+ key : ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
45
55
- name : Install ${{ matrix.toolchain }}
46
56
uses : dtolnay/rust-toolchain@stable
47
57
with :
48
58
toolchain : ${{ matrix.toolchain }}
49
- - name : cargo generate-lockfile
50
- # enable this ci template to run regardless of whether the lockfile is checked in or not
51
- if : hashFiles('Cargo.lock') == ''
52
- run : cargo generate-lockfile
53
- # https://twitter.com/jonhoo/status/1571290371124260865
54
- - name : cargo test --locked
55
- run : cargo test --workspace --locked --all-features --all-targets
59
+ - name : cargo test
60
+ run : cargo test --workspace --all-features --all-targets
Original file line number Diff line number Diff line change 4
4
target /
5
5
object_store /
6
6
7
- # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
8
- # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
9
- Cargo.lock
10
-
11
7
# These are backup files generated by rustfmt
12
8
** /* .rs.bk
13
9
You can’t perform that action at this time.
0 commit comments