Skip to content

Commit f9a928c

Browse files
Fix timestamp generation, fix ccache cache path
CCache default path has changed to ~/.cache/ccache
1 parent 524ffe5 commit f9a928c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ jobs:
104104
id: ccache_cache_timestamp
105105
shell: cmake -P {0}
106106
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 }})"
109109
110110
- name: Configure ccache
111111
uses: actions/cache@v4
112112
with:
113-
path: ~/.ccache
113+
path: ~/.cache/ccache
114114
key: ${{ matrix.config.os }}-${{ matrix.config.CC }}-${{ matrix.config.version }}-${{ matrix.config.type }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
115115
restore-keys: ${{ matrix.config.os }}-${{ matrix.config.CC }}-${{ matrix.config.version }}-${{ matrix.config.type }}-ccache-
116116

0 commit comments

Comments
 (0)