diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4fbbc1348..d56c43d34 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: @@ -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/ @@ -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 \ No newline at end of file