File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,13 @@ jobs:
104
104
id : ccache_cache_timestamp
105
105
shell : cmake -P {0}
106
106
run : |
107
- string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
108
- message("::set-output name=timestamp::${current_date}")
107
+ echo "sha=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
108
+ echo "timestamp=$(git show -s --format=%ct ${{ github.event.pull_request.head.sha }})"
109
109
110
110
- name : Configure ccache
111
111
uses : actions/cache@v4
112
112
with :
113
- path : ~/.ccache
113
+ path : ~/.cache/ ccache
114
114
key : ${{ matrix.config.os }}-${{ matrix.config.CC }}-${{ matrix.config.version }}-${{ matrix.config.type }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
115
115
restore-keys : ${{ matrix.config.os }}-${{ matrix.config.CC }}-${{ matrix.config.version }}-${{ matrix.config.type }}-ccache-
116
116
You can’t perform that action at this time.
0 commit comments