From a1f65897ec2e23422f88048ebf0b049511fdeb98 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Thu, 11 Jul 2024 09:53:27 +0900 Subject: [PATCH 1/2] hash cpp files Signed-off-by: Yutaka Kondo --- .github/actions/docker-build-and-push/action.yaml | 2 +- .github/actions/docker-build/action.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/docker-build-and-push/action.yaml b/.github/actions/docker-build-and-push/action.yaml index bcd59551fef..1a9b9cfaadd 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('**/*.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..22637f9cf8f 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('**/*.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('**/*.cpp') }} restore-keys: | cache-${{ matrix.platform }}-${{ matrix.name }}- cache-${{ matrix.platform }}- From a93c0d01fee4e235a938f8dac072aa9f1a0227b7 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Thu, 11 Jul 2024 10:19:25 +0900 Subject: [PATCH 2/2] add src prefix Signed-off-by: Yutaka Kondo --- .github/actions/docker-build-and-push/action.yaml | 2 +- .github/actions/docker-build/action.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/docker-build-and-push/action.yaml b/.github/actions/docker-build-and-push/action.yaml index 1a9b9cfaadd..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('**/*.cpp') }} + 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 22637f9cf8f..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('**/*.cpp') }} + 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('**/*.cpp') }} + key: cache-${{ matrix.platform }}-${{ matrix.name }}-${{ hashFiles('src/**/*.cpp') }} restore-keys: | cache-${{ matrix.platform }}-${{ matrix.name }}- cache-${{ matrix.platform }}-