From bcbc34a47a074afb8871e323fee96d4dc6aa21c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Thu, 27 Jun 2024 10:27:25 +0300 Subject: [PATCH] make cache direction explicit, remove cache from colcon-test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- clang-tidy/action.yaml | 2 +- colcon-build/action.yaml | 2 +- colcon-test/action.yaml | 17 ----------------- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/clang-tidy/action.yaml b/clang-tidy/action.yaml index 81eb6538..98c16715 100644 --- a/clang-tidy/action.yaml +++ b/clang-tidy/action.yaml @@ -87,7 +87,7 @@ runs: - name: Restore build files from cache id: restore-build-files - uses: actions/cache@v4 + uses: actions/cache/restore@v4 with: path: | ./build diff --git a/colcon-build/action.yaml b/colcon-build/action.yaml index 1b4a4976..d08db084 100644 --- a/colcon-build/action.yaml +++ b/colcon-build/action.yaml @@ -89,7 +89,7 @@ runs: shell: bash - name: Cache build artifacts - uses: actions/cache@v4 + uses: actions/cache/save@v4 with: path: | ./build diff --git a/colcon-test/action.yaml b/colcon-test/action.yaml index 8056588c..d7517ada 100644 --- a/colcon-test/action.yaml +++ b/colcon-test/action.yaml @@ -11,10 +11,6 @@ inputs: build-depends-repos: description: "" required: false - cmake-build-type: - description: "" - required: false - default: Release label-regex: description: "" required: false @@ -26,10 +22,6 @@ inputs: include-eol-distros: description: "" required: false - cache-key-element: - description: "Will be part of the cache key" - default: "default" - required: false outputs: coverage-report-files: description: "" @@ -85,15 +77,6 @@ runs: DEBIAN_FRONTEND=noninteractive rosdep install -yqq --from-paths ${package_paths} --ignore-src --rosdistro ${{ inputs.rosdistro }} shell: bash - - name: Restore build files from cache - id: restore-build-files - uses: actions/cache@v4 - with: - path: | - ./build - ./install - key: build-${{ runner.arch }}-${{ inputs.rosdistro }}-${{ inputs.cache-key-element }}-${{ inputs.cmake-build-type }}-${{ github.sha }} - - name: Test run: | set -e