Commit fddedde 1 parent c2119f6 commit fddedde Copy full SHA for fddedde
File tree 1 file changed +28
-7
lines changed
1 file changed +28
-7
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,26 @@ jobs:
10
10
steps :
11
11
- uses : actions/checkout@v2
12
12
13
+ - name : Cache Rust
14
+ uses : actions/cache@v2
15
+ id : cache-rust
16
+ with :
17
+ path : |
18
+ ~/.cargo/registry
19
+ ~/.cargo/git
20
+ target
21
+ key : ${{ runner.os }}-rust-check-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', '**/*.rs') }}
22
+
23
+ - name : Exit early on cache hit
24
+ if : steps.cache-rust.outputs.cache-hit == 'true'
25
+ run : exit 0
26
+
13
27
- name : Install Rust
14
28
uses : actions-rs/toolchain@v1
15
29
with :
16
30
toolchain : stable
17
31
override : true
18
32
19
- - name : Cache Rust dependencies
20
- uses : Swatinem/rust-cache@v2
21
-
22
33
- name : Run cargo check
23
34
run : cargo check
24
35
42
53
steps :
43
54
- uses : actions/checkout@v2
44
55
56
+ - name : Cache Rust
57
+ uses : actions/cache@v2
58
+ id : cache-rust
59
+ with :
60
+ path : |
61
+ ~/.cargo/registry
62
+ ~/.cargo/git
63
+ target
64
+ key : ${{ runner.os }}-rust-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', '**/*.rs') }}
65
+
66
+ - name : Exit early on cache hit
67
+ if : steps.cache-rust.outputs.cache-hit == 'true'
68
+ run : exit 0
69
+
45
70
- name : Install Rust
46
71
uses : actions-rs/toolchain@v1
47
72
with :
55
80
sudo apt-get update
56
81
sudo apt-get install -y libwebkit2gtk-4.1-dev
57
82
58
- - name : Cache Rust dependencies
59
- uses : Swatinem/rust-cache@v2
60
-
61
83
- name : Install cargo-xwin (for Windows build)
62
84
if : matrix.target == 'x86_64-pc-windows-msvc'
63
85
run : cargo install cargo-xwin
94
116
!target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/deps
95
117
!target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/build
96
118
!target/${{ matrix.target }}/${{ steps.build_flags.outputs.build_type }}/.fingerprint
97
- retention-days : 7
You can’t perform that action at this time.
0 commit comments