@@ -27,18 +27,21 @@ jobs:
28 path: ~/.cargo/registry
28 path: ~/.cargo/registry
29 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
29 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
30+ restore-keys: ${{ runner.os }}-v2-cargo-registry-
31 - name: Cache cargo index
32 - name: Cache cargo index
32 uses: actions/cache@v2.1.7
33 uses: actions/cache@v2.1.7
34 path: ~/.cargo/git
35 path: ~/.cargo/git
35 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
36 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
37+ restore-keys: ${{ runner.os }}-v2-cargo-index-
37 - name: Cache cargo target dir
39 - name: Cache cargo target dir
38 uses: actions/cache@v2.1.7
40 uses: actions/cache@v2.1.7
40 path: target
42 path: target
41 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
43 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
44+ restore-keys: ${{ runner.os }}-v2-cargo-build-target-
43 - name: Run cargo check
46 - name: Run cargo check
44 uses: actions-rs/cargo@v1
47 uses: actions-rs/cargo@v1
@@ -64,18 +67,21 @@ jobs:
65 path: ~/.cargo/registry
68 path: ~/.cargo/registry
66 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
69 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
70+ restore-keys: ${{ runner.os }}-v2-cargo-registry-
68 - name: Cache cargo index
72 - name: Cache cargo index
69 uses: actions/cache@v2.1.7
73 uses: actions/cache@v2.1.7
71 path: ~/.cargo/git
75 path: ~/.cargo/git
72 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
76 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
77+ restore-keys: ${{ runner.os }}-v2-cargo-index-
74 - name: Cache cargo target dir
79 - name: Cache cargo target dir
75 uses: actions/cache@v2.1.7
80 uses: actions/cache@v2.1.7
77 path: target
82 path: target
78 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
83 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
84+ restore-keys: ${{ runner.os }}-v2-cargo-build-target-
80 - name: Copy minimal languages config
86 - name: Copy minimal languages config
81 run: cp .github/workflows/languages.toml ./languages.toml
87 run: cp .github/workflows/languages.toml ./languages.toml
@@ -85,6 +91,7 @@ jobs:
86 path: runtime/grammars
92 path: runtime/grammars
87 key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }}
93 key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }}
94+ restore-keys: ${{ runner.os }}-v2-tree-sitter-grammars-
89 - name: Run cargo test
96 - name: Run cargo test
90 uses: actions-rs/cargo@v1
97 uses: actions-rs/cargo@v1
@@ -117,18 +124,21 @@ jobs:
118 path: ~/.cargo/registry
125 path: ~/.cargo/registry
119 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
126 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
127+ restore-keys: ${{ runner.os }}-v2-cargo-registry-
121 - name: Cache cargo index
129 - name: Cache cargo index
122 uses: actions/cache@v2.1.7
130 uses: actions/cache@v2.1.7
124 path: ~/.cargo/git
132 path: ~/.cargo/git
125 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
133 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
134+ restore-keys: ${{ runner.os }}-v2-cargo-index-
127 - name: Cache cargo target dir
136 - name: Cache cargo target dir
128 uses: actions/cache@v2.1.7
137 uses: actions/cache@v2.1.7
130 path: target
139 path: target
131 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
140 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
141+ restore-keys: ${{ runner.os }}-v2-cargo-build-target-
133 - name: Run cargo fmt
143 - name: Run cargo fmt
134 uses: actions-rs/cargo@v1
144 uses: actions-rs/cargo@v1
@@ -161,18 +171,21 @@ jobs:
162 path: ~/.cargo/registry
172 path: ~/.cargo/registry
163 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
173 key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
174+ restore-keys: ${{ runner.os }}-v2-cargo-registry-
165 - name: Cache cargo index
176 - name: Cache cargo index
166 uses: actions/cache@v2.1.6
177 uses: actions/cache@v2.1.6
168 path: ~/.cargo/git
179 path: ~/.cargo/git
169 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
180 key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }}
181+ restore-keys: ${{ runner.os }}-v2-cargo-index-
171 - name: Cache cargo target dir
183 - name: Cache cargo target dir
172 uses: actions/cache@v2.1.6
184 uses: actions/cache@v2.1.6
174 path: target
186 path: target
175 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
187 key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
188+ restore-keys: ${{ runner.os }}-v2-cargo-build-target-
177 - name: Generate docs
190 - name: Generate docs
178 uses: actions-rs/cargo@v1
191 uses: actions-rs/cargo@v1