From 1efcc88e214357fd2b6e8316a98259fce73144c8 Mon Sep 17 00:00:00 2001 From: aradwann Date: Thu, 7 Nov 2024 21:24:54 +0200 Subject: [PATCH] update cache from/to config --- .github/workflows/docker.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d56c43d34..fc4d5eac3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: @@ -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: | @@ -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 \ No newline at end of file