|
9 | 9 | cargo-cache: |
10 | 10 | required: false |
11 | 11 | default: true |
12 | | - description: "Cache Cargo registry, index, git DB, and ~/.cargo/bin. Enabled automatically if any Rust tools are requested." |
| 12 | + description: "Cache Cargo registry, index, and git DB. Enabled automatically if any Rust tools are requested." |
13 | 13 |
|
14 | 14 | mold: |
15 | 15 | required: false |
@@ -124,12 +124,11 @@ runs: |
124 | 124 | EOF |
125 | 125 | shell: bash |
126 | 126 |
|
127 | | - - name: Cache Cargo registry + index |
| 127 | + - name: Cache Cargo registry, index, and git DB |
128 | 128 | if: ${{ inputs.cargo-cache == 'true' || env.NEEDS_RUST == 'true' }} |
129 | 129 | uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 |
130 | 130 | with: |
131 | 131 | path: | |
132 | | - ~/.cargo/bin/ |
133 | 132 | ~/.cargo/registry/index/ |
134 | 133 | ~/.cargo/registry/cache/ |
135 | 134 | ~/.cargo/git/db/ |
@@ -210,6 +209,24 @@ runs: |
210 | 209 | if: ${{ inputs.vdev == 'true' }} |
211 | 210 | uses: ./.github/actions/install-vdev |
212 | 211 |
|
| 212 | + - name: Cache prepare.sh binaries |
| 213 | + id: cache-prepare-binaries |
| 214 | + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 |
| 215 | + with: |
| 216 | + path: | |
| 217 | + ~/.cargo/bin/cargo-deb |
| 218 | + ~/.cargo/bin/cross |
| 219 | + ~/.cargo/bin/cargo-nextest |
| 220 | + ~/.cargo/bin/cargo-deny |
| 221 | + ~/.cargo/bin/cargo-msrv |
| 222 | + ~/.cargo/bin/dd-rust-license-tool |
| 223 | + ~/.cargo/bin/wasm-pack |
| 224 | + /usr/local/bin/markdownlint |
| 225 | + /usr/local/bin/datadog-ci |
| 226 | + key: ${{ runner.os }}-prepare-binaries-${{ hashFiles('scripts/environment/*') }} |
| 227 | + restore-keys: | |
| 228 | + ${{ runner.os }}-prepare-binaries- |
| 229 | +
|
213 | 230 | - name: Run prepare.sh |
214 | 231 | shell: bash |
215 | 232 | run: | |
|
0 commit comments