Skip to content

Commit 9845bce

Browse files
committed
try switching to hendrikmuhs/ccache-action@v1.2
1 parent 721ead4 commit 9845bce

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,10 @@ jobs:
8787
echo "BLAS_PREFERENCE_LIST=ReferenceBLAS" >> $GITHUB_ENV
8888
fi
8989
90-
- name: Prepare ccache timestamp
91-
id: ccache_cache_timestamp
92-
shell: cmake -P {0}
93-
run: |
94-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
95-
message("::set-output name=timestamp::${current_date}")
96-
97-
- name: Setup ccache cache files
98-
uses: actions/cache@v4
90+
- name: Setup ccache
91+
uses: hendrikmuhs/ccache-action@v1.2
9992
with:
100-
path: ${{github.workspace}}/build/.ccache
101-
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
102-
restore-keys: |
103-
${{ matrix.config.name }}-ccache-
93+
key: ccache-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.linalg }}
10494

10595
- name: Configure CMake
10696
# Use a bash shell so we can use the same syntax for environment variable

0 commit comments

Comments
 (0)