From 9879d6651eebc01fa0fec0c3e709674de069aae3 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 7 Feb 2023 17:59:51 +0100 Subject: [PATCH] .github: update cache key --- .github/workflows/macos_build.yml | 1 + .github/workflows/test_linux_sbc.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml index 95a05d7510..e9e54b8d9b 100644 --- a/.github/workflows/macos_build.yml +++ b/.github/workflows/macos_build.yml @@ -31,6 +31,7 @@ jobs: # Put ccache into github cache for faster build - name: Prepare ccache timestamp id: ccache_cache_timestamp + shell: bash run: | NOW=$(date -u +"%F-%T") echo "timestamp=${NOW}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/test_linux_sbc.yml b/.github/workflows/test_linux_sbc.yml index 0cd0ea30fb..3db0df687a 100644 --- a/.github/workflows/test_linux_sbc.yml +++ b/.github/workflows/test_linux_sbc.yml @@ -57,7 +57,7 @@ jobs: with: path: ~/.ccache key: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}} - restore-keys: ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master + restore-keys: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master - name: setup ccache run: | . .github/workflows/ccache.env