diff --git a/.github/actions/docker-build-and-push/action.yaml b/.github/actions/docker-build-and-push/action.yaml index bcd59551fef..25b482bce2b 100644 --- a/.github/actions/docker-build-and-push/action.yaml +++ b/.github/actions/docker-build-and-push/action.yaml @@ -49,7 +49,7 @@ runs: with: path: | root-ccache - key: cache-${{ inputs.platform }}-${{ inputs.name }}-${{ hashFiles('autoware.repos') }} + key: cache-${{ inputs.platform }}-${{ inputs.name }}-${{ hashFiles('src/**/*.cpp') }} restore-keys: | cache-${{ inputs.platform }}-${{ inputs.name }}- cache-${{ inputs.platform }}- diff --git a/.github/actions/docker-build/action.yaml b/.github/actions/docker-build/action.yaml index 147a1a75cf5..7b36ab426a9 100644 --- a/.github/actions/docker-build/action.yaml +++ b/.github/actions/docker-build/action.yaml @@ -41,7 +41,7 @@ runs: with: path: | root-ccache - key: cache-${{ inputs.platform }}-${{ inputs.name }}-${{ hashFiles('autoware.repos') }} + key: cache-${{ inputs.platform }}-${{ inputs.name }}-${{ hashFiles('src/**/*.cpp') }} restore-keys: | cache-${{ inputs.platform }}-${{ inputs.name }}- cache-${{ inputs.platform }}- @@ -52,7 +52,7 @@ runs: with: path: | root-ccache - key: cache-${{ matrix.platform }}-${{ matrix.name }}-${{ hashFiles('autoware.repos') }} + key: cache-${{ matrix.platform }}-${{ matrix.name }}-${{ hashFiles('src/**/*.cpp') }} restore-keys: | cache-${{ matrix.platform }}-${{ matrix.name }}- cache-${{ matrix.platform }}-