Skip to content

Commit

Permalink
update cache from/to config
Browse files Browse the repository at this point in the history
  • Loading branch information
aradwann committed Nov 7, 2024
1 parent cf8750d commit d82aab9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ env:
GHCR_REGISTRY: 'ghcr.io'
GHCR_REGISTRY_USERNAME: ${{ github.actor }}
GHCR_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"


jobs:
Expand Down Expand Up @@ -127,9 +125,9 @@ jobs:
SCCACHE_GHA_ENABLED=on
RESTATE_FEATURES=${{ inputs.features || '' }}
RUSTC_WRAPPER=sccache
cache-from: type=gha,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
cache-to: type=gha,mode=max,scope=${{ github.workflow }},url=http://127.0.0.1:49160/

cache-from: type=gha,url=http://127.0.0.1:49160/
cache-to: type=gha,url=http://127.0.0.1:49160/,mode=max
- name: Save docker image as tar
if: ${{ inputs.uploadImageAsTarball }}
run: |
Expand Down Expand Up @@ -167,6 +165,3 @@ jobs:
RESTATE_FEATURES=${{ inputs.features || '' }}
cache-from: type=gha,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
cache-to: type=gha,mode=max,scope=${{ github.workflow }},url=http://127.0.0.1:49160/
- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --show-stats

0 comments on commit d82aab9

Please sign in to comment.