Skip to content

Commit ec25e74

Browse files
committed
ci: Update cache action
This change fixes deprecation warnings for Node.js 16 actions in the GHA CI. See: - https://github.com/marketplace/actions/cache - https://github.com/actions/cache/releases/tag/v4.0.0
1 parent 4ad83ef commit ec25e74

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103

104104
- name: Restore Ccache cache
105105
id: ccache-cache
106-
uses: actions/cache/restore@v3
106+
uses: actions/cache/restore@v4
107107
with:
108108
path: ${{ env.CCACHE_DIR }}
109109
key: ${{ github.job }}-ccache-${{ github.run_id }}
@@ -113,7 +113,7 @@ jobs:
113113
run: ./ci/test_run_all.sh
114114

115115
- name: Save Ccache cache
116-
uses: actions/cache/save@v3
116+
uses: actions/cache/save@v4
117117
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
118118
with:
119119
path: ${{ env.CCACHE_DIR }}
@@ -159,7 +159,7 @@ jobs:
159159
160160
- name: Restore static Qt cache
161161
id: static-qt-cache
162-
uses: actions/cache/restore@v3
162+
uses: actions/cache/restore@v4
163163
with:
164164
path: C:\Qt_static
165165
key: ${{ github.job }}-static-qt-${{ hashFiles('msbuild_version', 'qt_url', 'qt_conf') }}
@@ -202,14 +202,14 @@ jobs:
202202

203203
- name: Save static Qt cache
204204
if: steps.static-qt-cache.outputs.cache-hit != 'true'
205-
uses: actions/cache/save@v3
205+
uses: actions/cache/save@v4
206206
with:
207207
path: C:\Qt_static
208208
key: ${{ github.job }}-static-qt-${{ hashFiles('msbuild_version', 'qt_url', 'qt_conf') }}
209209

210210
- name: Ccache installation cache
211211
id: ccache-installation-cache
212-
uses: actions/cache@v3
212+
uses: actions/cache@v4
213213
with:
214214
path: |
215215
C:\ProgramData\chocolatey\lib\ccache
@@ -226,7 +226,7 @@ jobs:
226226
227227
- name: Restore Ccache cache
228228
id: ccache-cache
229-
uses: actions/cache/restore@v3
229+
uses: actions/cache/restore@v4
230230
with:
231231
path: ~/AppData/Local/ccache
232232
key: ${{ github.job }}-ccache-${{ github.run_id }}
@@ -242,13 +242,13 @@ jobs:
242242
Get-Content -Path "$env:GITHUB_WORKSPACE\vcpkg_commit"
243243
244244
- name: vcpkg tools cache
245-
uses: actions/cache@v3
245+
uses: actions/cache@v4
246246
with:
247247
path: C:/vcpkg/downloads/tools
248248
key: ${{ github.job }}-vcpkg-tools
249249

250250
- name: vcpkg binary cache
251-
uses: actions/cache@v3
251+
uses: actions/cache@v4
252252
with:
253253
path: ~/AppData/Local/vcpkg/archives
254254
key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('vcpkg_commit', 'msbuild_version', 'toolset_version', 'build_msvc/vcpkg.json') }}
@@ -266,7 +266,7 @@ jobs:
266266
run: ccache --show-stats
267267

268268
- name: Save Ccache cache
269-
uses: actions/cache/save@v3
269+
uses: actions/cache/save@v4
270270
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
271271
with:
272272
path: ~/AppData/Local/ccache

0 commit comments

Comments
 (0)