From 7333e3c3a45796b028132d6be693b62dbd8878c8 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Wed, 3 Jul 2024 22:29:45 +0900 Subject: [PATCH 1/3] cache only on no-cuda Signed-off-by: Yutaka Kondo --- .github/actions/docker-build/action.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/actions/docker-build/action.yaml b/.github/actions/docker-build/action.yaml index 84523983a0a..1fea9f5bcc9 100644 --- a/.github/actions/docker-build/action.yaml +++ b/.github/actions/docker-build/action.yaml @@ -36,6 +36,7 @@ runs: - name: Cache uses: actions/cache@v3 + if: ${{ inputs.name == 'no-cuda' }} id: cache with: path: | @@ -45,6 +46,17 @@ runs: cache-${{ inputs.platform }}-${{ inputs.name }}- cache-${{ inputs.platform }}- + - name: Restore cache + uses: actions/cache/restore@v4 + if: ${{ inputs.name != 'no-cuda' }} + with: + path: | + root-ccache + key: cache-${{ matrix.platform }}-${{ matrix.name }}-${{ hashFiles('autoware.repos') }} + restore-keys: | + cache-${{ matrix.platform }}-${{ matrix.name }}- + cache-${{ matrix.platform }}- + - name: Inject cache into docker uses: reproducible-containers/buildkit-cache-dance@v3.1.0 with: From 36111ad88c37fbf9a11cecd42a38594dc4d033c2 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Thu, 4 Jul 2024 10:11:03 +0900 Subject: [PATCH 2/3] version up Signed-off-by: Yutaka Kondo --- .github/actions/docker-build/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/docker-build/action.yaml b/.github/actions/docker-build/action.yaml index 1fea9f5bcc9..a5a863baa96 100644 --- a/.github/actions/docker-build/action.yaml +++ b/.github/actions/docker-build/action.yaml @@ -35,7 +35,7 @@ runs: shell: bash - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 if: ${{ inputs.name == 'no-cuda' }} id: cache with: From a4614f475f452d7f7e2d42961ea12ad4c54d786d Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Thu, 4 Jul 2024 11:01:27 +0900 Subject: [PATCH 3/3] version up Signed-off-by: Yutaka Kondo --- .github/actions/docker-build/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/docker-build/action.yaml b/.github/actions/docker-build/action.yaml index a5a863baa96..147a1a75cf5 100644 --- a/.github/actions/docker-build/action.yaml +++ b/.github/actions/docker-build/action.yaml @@ -58,7 +58,7 @@ runs: cache-${{ matrix.platform }}- - name: Inject cache into docker - uses: reproducible-containers/buildkit-cache-dance@v3.1.0 + uses: reproducible-containers/buildkit-cache-dance@v3.1.2 with: cache-map: | {