Skip to content

Commit

Permalink
od: Fix GitHub CI cache key variables syntax
Browse files Browse the repository at this point in the history
`${ { ... } }` is not the same as `${{ ... }}`.

It was being interpreted literally when logging,
resulting in a non-informative message, such as:

    Cache restored from key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } }

Signed-off-by: Gleb Mazovetskiy <[email protected]>
  • Loading branch information
glebm authored and pcercuei committed Mar 23, 2023
1 parent 035527a commit 4990060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
uses: actions/cache@v3
with:
path: output/ccache/${{ matrix.target }}
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ matrix.config.name }}-ccache-
${{ matrix.config.name }}-ccache-
- name: build
run: ./rebuild.sh
env:
Expand Down

0 comments on commit 4990060

Please sign in to comment.