Skip to content

Commit 1efcc88

Browse files
committed
update cache from/to config
1 parent 80e4255 commit 1efcc88

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ env:
4747
GHCR_REGISTRY: 'ghcr.io'
4848
GHCR_REGISTRY_USERNAME: ${{ github.actor }}
4949
GHCR_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
SCCACHE_GHA_ENABLED: "true"
51-
RUSTC_WRAPPER: "sccache"
5250

5351

5452
jobs:
@@ -127,9 +125,9 @@ jobs:
127125
SCCACHE_GHA_ENABLED=on
128126
RESTATE_FEATURES=${{ inputs.features || '' }}
129127
RUSTC_WRAPPER=sccache
130-
cache-from: type=gha,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
131-
cache-to: type=gha,mode=max,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
132-
128+
cache-from: type=gha,url=http://127.0.0.1:49160/
129+
cache-to: type=gha,url=http://127.0.0.1:49160/,mode=max
130+
133131
- name: Save docker image as tar
134132
if: ${{ inputs.uploadImageAsTarball }}
135133
run: |
@@ -167,6 +165,3 @@ jobs:
167165
RESTATE_FEATURES=${{ inputs.features || '' }}
168166
cache-from: type=gha,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
169167
cache-to: type=gha,mode=max,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
170-
- name: Run sccache stat for check
171-
shell: bash
172-
run: ${SCCACHE_PATH} --show-stats

0 commit comments

Comments
 (0)