Skip to content

Commit 2edab65

Browse files
committed
target id
Signed-off-by: clux <[email protected]>
1 parent b5ac2dc commit 2edab65

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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

e2e/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ COPY . /app
77
RUN --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

0 commit comments

Comments
 (0)