File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,11 @@ jobs:
237237 with :
238238 path : |
239239 target
240- ~/ .cargo/registry
241- ~/ .cargo/git
242- key : docker-cargo3 -${{matrix.tls}}-${{ hashFiles('**/Cargo.toml', 'e2e/Dockerfile') }}
240+ .cargo/registry
241+ .cargo/git
242+ key : docker-cargo4 -${{matrix.tls}}-${{ hashFiles('**/Cargo.toml', 'e2e/Dockerfile') }}
243243 restore-keys : |
244- docker-cargo3 -${{matrix.tls}}-
244+ docker-cargo4 -${{matrix.tls}}-
245245 - name : Create folders on cache miss
246246 run : mkdir -p ~/.cargo/{git,registry} && mkdir -p target
247247
@@ -252,9 +252,12 @@ jobs:
252252 builder : ${{ steps.setup-buildx.outputs.name }}
253253 cache-map : |
254254 {
255- "target": "/app/target",
256- "~/.cargo/registry": "/root/.cargo/registry",
257- "~/.cargo/git": "/root/.cargo/git"
255+ "target": {
256+ "target": "/app/target",
257+ "id": "target"
258+ },
259+ ".cargo/registry": "/root/.cargo/registry",
260+ ".cargo/git": "/root/.cargo/git"
258261 }
259262 # skip-extraction: ${{ steps.cache.outputs.cache-hit }}
260263
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ COPY . /app
77RUN --mount=type=bind,rw,target=. \
88 --mount=type=cache,target=/root/.cargo \
99 cargo fetch
10- RUN --mount=type=bind,rw,target=. --mount=type=cache,target=/root/.cargo \
10+ RUN --mount=type=bind,rw,target=. \
11+ --mount=type=cache,target=/root/.cargo \
1112 --mount=type=cache,target=target,id=target \
1213 cargo install --path=e2e --features=${FEATURES} --bin=job
1314
You can’t perform that action at this time.
0 commit comments