@@ -59,20 +59,38 @@ jobs:
5959 runs-on : ${{ matrix.os }}
6060
6161 steps :
62- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
63- with :
64- persist-credentials : false
65-
6662 - name : ' Use faster D: drive for yarn cache on Windows'
6763 if : startsWith(matrix.os, 'windows')
6864 shell : cmd
6965 run : yarn config set cache-folder D:\ft_yarn_cache
7066
67+ - name : Get yarn cache directory
68+ id : cache_dir
69+ shell : bash
70+ run : |
71+ {
72+ echo 'cache_dir<<EOF'
73+ yarn cache dir
74+ echo EOF
75+ } >> "$GITHUB_OUTPUT"
76+
77+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
78+ with :
79+ persist-credentials : false
80+
7181 - name : Use Node.js ${{ matrix.node-version }}
72- uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2 .0
82+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3 .0
7383 with :
7484 node-version : ${{ matrix.node-version }}
75- cache : " yarn"
85+ package-manager-cache : false
86+
87+ - name : Restore yarn cache
88+ id : restore_cache
89+ uses : actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
90+ with :
91+ key : ${{ format('node-cache-{0}-{1}-yarn-{2}', runner.os, runner.arch, hashFiles('yarn.lock')) }}
92+ path : ${{ steps.cache_dir.outputs.cache_dir }}
93+
7694 - run : yarn run ci
7795 shell : bash
7896 env :
@@ -138,91 +156,91 @@ jobs:
138156 rm -rf ./squashfs-root ./appimagetool.AppImage
139157
140158 - name : Upload Linux .zip x64 Artifact
141- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
159+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
142160 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
143161 with :
144162 name : freetube-${{ steps.versionNumber.outputs.version }}-linux-x64-portable.zip
145163 path : build/freetube-${{ steps.versionNumber.outputs.version }}.zip
146164
147165 - name : Upload Linux .7z x64 Artifact
148- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
166+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
149167 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
150168 with :
151169 name : freetube-${{ steps.versionNumber.outputs.version }}-linux-x64-portable.7z
152170 path : build/freetube-${{ steps.versionNumber.outputs.version }}.7z
153171
154172 - name : Upload Linux .zip ARMv7l Artifact
155- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
173+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
156174 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
157175 with :
158176 name : freetube-${{ steps.versionNumber.outputs.version }}-linux-armv7l-portable.zip
159177 path : build/freetube-${{ steps.versionNumber.outputs.version }}-armv7l.zip
160178
161179 - name : Upload Linux .7z ARMv7l Artifact
162- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
180+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
163181 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
164182 with :
165183 name : freetube-${{ steps.versionNumber.outputs.version }}-linux-armv7l-portable.7z
166184 path : build/freetube-${{ steps.versionNumber.outputs.version }}-armv7l.7z
167185
168186 - name : Upload Linux .zip ARM64 Artifact
169- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
187+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
170188 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-arm64')
171189 with :
172190 name : freetube-${{ steps.versionNumber.outputs.version }}-linux-arm64-portable.zip
173191 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64.zip
174192
175193 - name : Upload Linux .7z ARM64 Artifact
176- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
194+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
177195 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-arm64')
178196 with :
179197 name : freetube-${{ steps.versionNumber.outputs.version }}-linux-arm64-portable.7z
180198 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64.7z
181199
182200 - name : Upload .deb x64 Artifact
183- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
201+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
184202 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
185203 with :
186204 name : freetube_${{ steps.versionNumber.outputs.version }}_amd64.deb
187205 path : build/freetube_${{ steps.versionNumber.outputs.version }}_amd64.deb
188206
189207 - name : Upload .deb ARMv7l Artifact
190- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
208+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
191209 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
192210 with :
193211 name : freetube_${{ steps.versionNumber.outputs.version }}_armv7l.deb
194212 path : build/freetube_${{ steps.versionNumber.outputs.version }}_armv7l.deb
195213
196214 - name : Upload .deb ARM64 Artifact
197- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
215+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
198216 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-arm64')
199217 with :
200218 name : freetube_${{ steps.versionNumber.outputs.version }}_arm64.deb
201219 path : build/freetube_${{ steps.versionNumber.outputs.version }}_arm64.deb
202220
203221 - name : Upload AppImage x64 Artifact
204- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
222+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
205223 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
206224 with :
207225 name : freetube-${{ steps.versionNumber.outputs.version }}-amd64.AppImage
208226 path : build/FreeTube-${{ steps.versionNumber.outputs.version }}.AppImage
209227
210228 - name : Upload AppImage ARMv7l Artifact
211- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
229+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
212230 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
213231 with :
214232 name : freetube-${{ steps.versionNumber.outputs.version }}-armv7l.AppImage
215233 path : build/FreeTube-${{ steps.versionNumber.outputs.version }}-armv7l.AppImage
216234
217235 - name : Upload AppImage ARM64 Artifact
218- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
236+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
219237 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-arm64')
220238 with :
221239 name : freetube-${{ steps.versionNumber.outputs.version }}-arm64.AppImage
222240 path : build/FreeTube-${{ steps.versionNumber.outputs.version }}-arm64.AppImage
223241
224242 - name : Upload .rpm x64 Artifact
225- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
243+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
226244 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
227245 with :
228246 name : freetube-${{ steps.versionNumber.outputs.version }}.amd64.rpm
@@ -231,113 +249,121 @@ jobs:
231249 # rpm are not built for armv7l
232250
233251 - name : Upload .rpm ARM64 Artifact
234- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
252+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
235253 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-arm64')
236254 with :
237255 name : freetube-${{ steps.versionNumber.outputs.version }}.arm64.rpm
238256 path : build/freetube-${{ steps.versionNumber.outputs.version }}.aarch64.rpm
239257
240258 - name : Upload Pacman .pacman x64 Artifact
241- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
259+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
242260 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
243261 with :
244262 name : freetube-${{ steps.versionNumber.outputs.version }}-amd64.pacman
245263 path : build/freetube-${{ steps.versionNumber.outputs.version }}.pacman
246264
247265 - name : Upload Windows x64 .exe Artifact
248- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
266+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
249267 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-x64')
250268 with :
251269 name : freetube-${{ steps.versionNumber.outputs.version }}-setup-x64.exe
252270 path : build/freetube Setup ${{ steps.versionNumber.outputs.version }}.exe
253271
254272 - name : Upload Windows x64 Portable Artifact
255- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
273+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
256274 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-x64')
257275 with :
258276 name : freetube-${{ steps.versionNumber.outputs.version }}-win-x64-portable.exe
259277 path : build/freetube ${{ steps.versionNumber.outputs.version }}.exe
260278
261279 - name : Upload Windows x64 .zip Artifact
262- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
280+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
263281 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-x64')
264282 with :
265283 name : freetube-${{ steps.versionNumber.outputs.version }}-win-x64-portable.zip
266284 path : build/freetube-${{ steps.versionNumber.outputs.version }}-win.zip
267285
268286 - name : Upload Windows x64 .7z Artifact
269- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
287+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
270288 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-x64')
271289 with :
272290 name : freetube-${{ steps.versionNumber.outputs.version }}-win-x64-portable.7z
273291 path : build/freetube-${{ steps.versionNumber.outputs.version }}-win.7z
274292
275293 - name : Upload Windows arm64 .exe Artifact
276- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
294+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
277295 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-arm64')
278296 with :
279297 name : freetube-${{ steps.versionNumber.outputs.version }}-setup-arm64.exe
280298 path : build/freetube Setup ${{ steps.versionNumber.outputs.version }}.exe
281299
282300 - name : Upload Windows arm64 Portable Artifact
283- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
301+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
284302 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-arm64')
285303 with :
286304 name : freetube-${{ steps.versionNumber.outputs.version }}-win-arm64-portable.exe
287305 path : build/freetube ${{ steps.versionNumber.outputs.version }}.exe
288306
289307 - name : Upload Windows arm64 .zip Artifact
290- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
308+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
291309 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-arm64')
292310 with :
293311 name : freetube-${{ steps.versionNumber.outputs.version }}-win-arm64-portable.zip
294312 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64-win.zip
295313
296314 - name : Upload Windows arm64 .7z Artifact
297- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
315+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
298316 if : startsWith(matrix.os, 'windows') && startsWith(matrix.runtime, 'win-arm64')
299317 with :
300318 name : freetube-${{ steps.versionNumber.outputs.version }}-win-arm64-portable.7z
301319 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64-win.7z
302320
303321 - name : Upload Mac x64 .dmg Artifact
304- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
322+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
305323 if : startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-x64')
306324 with :
307325 name : freetube-${{ steps.versionNumber.outputs.version }}-mac-x64.dmg
308326 path : build/freetube-${{ steps.versionNumber.outputs.version }}.dmg
309327
310328 - name : Upload Mac x64 .zip Artifact
311- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
329+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
312330 if : startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-x64')
313331 with :
314332 name : freetube-${{ steps.versionNumber.outputs.version }}-mac-x64.zip
315333 path : build/freetube-${{ steps.versionNumber.outputs.version }}-mac.zip
316334
317335 - name : Upload Mac x64 .7z Artifact
318- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
336+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
319337 if : startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-x64')
320338 with :
321339 name : freetube-${{ steps.versionNumber.outputs.version }}-mac-x64.7z
322340 path : build/freetube-${{ steps.versionNumber.outputs.version }}-mac.7z
323341
324342 - name : Upload Mac arm64 .dmg Artifact
325- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
343+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
326344 if : startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64')
327345 with :
328346 name : freetube-${{ steps.versionNumber.outputs.version }}-mac-arm64.dmg
329347 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64.dmg
330348
331349 - name : Upload Mac arm64 .zip Artifact
332- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
350+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
333351 if : startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64')
334352 with :
335353 name : freetube-${{ steps.versionNumber.outputs.version }}-mac-arm64.zip
336354 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64-mac.zip
337355
338356 - name : Upload Mac arm64 .7z Artifact
339- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
357+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
340358 if : startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64')
341359 with :
342360 name : freetube-${{ steps.versionNumber.outputs.version }}-mac-arm64.7z
343361 path : build/freetube-${{ steps.versionNumber.outputs.version }}-arm64-mac.7z
362+
363+ - name : Save yarn cache
364+ uses : actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
365+ # Only save the cache if we weren't able to restore an existing one above
366+ if : steps.restore_cache.outputs.cache-primary-key != steps.restore_cache.outputs.cache-matched-key
367+ with :
368+ key : ${{ steps.restore_cache.outputs.cache-primary-key }}
369+ path : ${{ steps.cache_dir.outputs.cache_dir }}
0 commit comments