@@ -416,7 +416,7 @@ jobs:
416416 path : |
417417 ${{ github.workspace }}/openwrt/feeds/packages
418418 ${{ github.workspace }}/openwrt/feeds/luci
419- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
419+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
420420# ## ----------------------------------------------------------------- ###
421421 - name : ' Restore build Directory from cache'
422422 id : build-cache
@@ -426,7 +426,7 @@ jobs:
426426 CACHE_NAME : ' build-cache'
427427 with :
428428 path : ${{ github.workspace }}/openwrt/build_dir
429- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
429+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
430430# ## ----------------------------------------------------------------- ###
431431 - name : ' Restore staging Directory from cache'
432432 id : staging-cache
@@ -436,7 +436,7 @@ jobs:
436436 CACHE_NAME : ' staging-cache'
437437 with :
438438 path : ${{ github.workspace }}/openwrt/staging_dir
439- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
439+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
440440# ## ----------------------------------------------------------------- ###
441441 - name : ' Restore package Directory from cache'
442442 id : package-cache
@@ -446,7 +446,7 @@ jobs:
446446 CACHE_NAME : ' package-cache'
447447 with :
448448 path : ${{ github.workspace }}/openwrt/package
449- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
449+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
450450# ## ----------------------------------------------------------------- ###
451451 - name : ' Restore downloads Directory from cache'
452452 id : dl-cache
@@ -456,7 +456,7 @@ jobs:
456456 CACHE_NAME : ' dl-cache'
457457 with :
458458 path : ${{ github.workspace }}/openwrt/dl
459- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
459+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
460460 # ## ----------------------------------------------------------------- ###
461461 - name : ' Restore build_dir/toolchain Directory from cache'
462462 id : build_dir_toolchain-cache
@@ -466,7 +466,7 @@ jobs:
466466 CACHE_NAME : ' build_dir_toolchain-cache'
467467 with :
468468 path : ${{ github.workspace }}/openwrt/build_dir/toolchain-*
469- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
469+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
470470 # ## ----------------------------------------------------------------- ###
471471 - name : ' Restore build_dir/target Directory from cache'
472472 id : build_dir_target-cache
@@ -476,7 +476,7 @@ jobs:
476476 CACHE_NAME : ' build_dir_target-cache'
477477 with :
478478 path : ${{ github.workspace }}/openwrt/build_dir/target-*
479- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
479+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
480480 # ## ----------------------------------------------------------------- ###
481481 - name : ' Restore build_dir/host Directory from cache'
482482 id : build_dir_host-cache
@@ -486,7 +486,7 @@ jobs:
486486 CACHE_NAME : ' build_dir_host-cache'
487487 with :
488488 path : ${{ github.workspace }}/openwrt/build_dir/host
489- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
489+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
490490 # ## ----------------------------------------------------------------- ###
491491 - name : ' Restore build_dir/hostpkg Directory from cache'
492492 id : build_dir_hostpkg-cache
@@ -496,7 +496,7 @@ jobs:
496496 CACHE_NAME : ' build_dir_hostpkg-cache'
497497 with :
498498 path : ${{ github.workspace }}/openwrt/build_dir/hostpkg
499- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
499+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
500500 # ## ----------------------------------------------------------------- ###
501501 - name : ' Restore .ccache from cache'
502502 id : ccache-cache
@@ -506,7 +506,7 @@ jobs:
506506 CACHE_NAME : ' ccache-cache'
507507 with :
508508 path : ${{ github.workspace }}/openwrt/.ccache
509- key : ${{ env.CACHE_NAME }}-${{ runner.os }}
509+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
510510# ## ----------------------------------------------------------------- ###
511511 - name : Setup cache for OpenWRT (ccache)
512512 id : ccache
0 commit comments