|
57 | 57 | - uses: Swatinem/rust-cache@v2 |
58 | 58 | with: |
59 | 59 | workspaces: "baml_language -> target" |
| 60 | + prefix-key: v1-rust-shared |
| 61 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 62 | + cache-workspace-crates: true |
| 63 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
60 | 64 |
|
61 | 65 | - name: "Install Rust toolchain" |
62 | 66 | run: | |
|
86 | 90 | - uses: Swatinem/rust-cache@v2 |
87 | 91 | with: |
88 | 92 | workspaces: "baml_language -> target" |
| 93 | + prefix-key: v1-rust-shared |
| 94 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 95 | + cache-workspace-crates: true |
| 96 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
89 | 97 |
|
90 | 98 | - name: "Install Rust toolchain" |
91 | 99 | run: rustup show |
@@ -137,6 +145,10 @@ jobs: |
137 | 145 | - uses: Swatinem/rust-cache@v2 |
138 | 146 | with: |
139 | 147 | workspaces: "baml_language -> target" |
| 148 | + prefix-key: v1-rust-shared |
| 149 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 150 | + cache-workspace-crates: true |
| 151 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
140 | 152 |
|
141 | 153 | - name: "Install Rust toolchain" |
142 | 154 | run: rustup show |
@@ -166,6 +178,10 @@ jobs: |
166 | 178 | - uses: Swatinem/rust-cache@v2 |
167 | 179 | with: |
168 | 180 | workspaces: "baml_language -> target" |
| 181 | + prefix-key: v1-rust-shared |
| 182 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 183 | + cache-workspace-crates: true |
| 184 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
169 | 185 |
|
170 | 186 | - name: "Install Rust toolchain" |
171 | 187 | run: rustup show |
@@ -195,6 +211,10 @@ jobs: |
195 | 211 | - uses: Swatinem/rust-cache@v2 |
196 | 212 | with: |
197 | 213 | workspaces: "baml_language -> target" |
| 214 | + prefix-key: v1-rust-shared |
| 215 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 216 | + cache-workspace-crates: true |
| 217 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
198 | 218 |
|
199 | 219 | - name: "Install Rust toolchain" |
200 | 220 | run: | |
@@ -234,6 +254,10 @@ jobs: |
234 | 254 | - uses: Swatinem/rust-cache@v2 |
235 | 255 | with: |
236 | 256 | workspaces: "baml_language -> target" |
| 257 | + prefix-key: v1-rust-shared |
| 258 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 259 | + cache-workspace-crates: true |
| 260 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
237 | 261 |
|
238 | 262 | - name: "Install Rust toolchain (MSRV)" |
239 | 263 | env: |
@@ -285,6 +309,10 @@ jobs: |
285 | 309 | - uses: Swatinem/rust-cache@v2 |
286 | 310 | with: |
287 | 311 | workspaces: "baml_language -> target" |
| 312 | + prefix-key: v1-rust-shared |
| 313 | + shared-key: ${{ hashFiles('baml_language/Cargo.lock') }} |
| 314 | + cache-workspace-crates: true |
| 315 | + save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary' }} |
288 | 316 |
|
289 | 317 | - name: "Install Rust toolchain" |
290 | 318 | run: rustup show |
|
0 commit comments