Skip to content

Commit

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


jobs:
build-and-push-image:
Expand Down Expand Up @@ -121,8 +124,9 @@ jobs:
CARGO_PROFILE_RELEASE_DEBUG=${{ inputs.debug }}
ACTIONS_CACHE_URL=http://127.0.0.1:49160/
ACTIONS_RUNTIME_TOKEN
SCCACHE_GHA_ENABLED=true
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/

Expand Down Expand Up @@ -159,7 +163,10 @@ jobs:
CARGO_PROFILE_RELEASE_DEBUG=${{ inputs.debug }}
ACTIONS_CACHE_URL=http://127.0.0.1:49160/
ACTIONS_RUNTIME_TOKEN
SCCACHE_GHA_ENABLED=true
SCCACHE_GHA_ENABLED=on
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 cf8750d

Please sign in to comment.