@@ -173,7 +173,6 @@ jobs:
173173 id : date
174174 run : |
175175 echo "::set-output name=date::$(date +'%s')"
176-
177176# ## ----------------------------------------------------------------- ###
178177 - name : Clone OpenWRT source code
179178 working-directory : /workdir
@@ -402,7 +401,7 @@ jobs:
402401 path : |
403402 ${{ github.workspace }}/openwrt/feeds/packages
404403 ${{ github.workspace }}/openwrt/feeds/luci
405- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
404+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
406405# ## ----------------------------------------------------------------- ###
407406 - name : ' Restore build Directory from cache'
408407 id : build-cache
@@ -412,7 +411,7 @@ jobs:
412411 CACHE_NAME : ' build-cache'
413412 with :
414413 path : ${{ github.workspace }}/openwrt/build_dir
415- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
414+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
416415# ## ----------------------------------------------------------------- ###
417416 - name : ' Restore staging Directory from cache'
418417 id : staging-cache
@@ -422,7 +421,7 @@ jobs:
422421 CACHE_NAME : ' staging-cache'
423422 with :
424423 path : ${{ github.workspace }}/openwrt/staging_dir
425- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
424+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
426425# ## ----------------------------------------------------------------- ###
427426 - name : ' Restore package Directory from cache'
428427 id : package-cache
@@ -432,7 +431,7 @@ jobs:
432431 CACHE_NAME : ' package-cache'
433432 with :
434433 path : ${{ github.workspace }}/openwrt/package
435- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
434+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
436435# ## ----------------------------------------------------------------- ###
437436 - name : ' Restore downloads Directory from cache'
438437 id : dl-cache
@@ -442,7 +441,7 @@ jobs:
442441 CACHE_NAME : ' dl-cache'
443442 with :
444443 path : ${{ github.workspace }}/openwrt/dl
445- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
444+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
446445 # ## ----------------------------------------------------------------- ###
447446 - name : ' Restore build_dir/toolchain Directory from cache'
448447 id : build_dir_toolchain-cache
@@ -452,7 +451,7 @@ jobs:
452451 CACHE_NAME : ' build_dir_toolchain-cache'
453452 with :
454453 path : ${{ github.workspace }}/openwrt/build_dir/toolchain-*
455- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
454+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
456455 # ## ----------------------------------------------------------------- ###
457456 - name : ' Restore build_dir/target Directory from cache'
458457 id : build_dir_target-cache
@@ -462,7 +461,7 @@ jobs:
462461 CACHE_NAME : ' build_dir_target-cache'
463462 with :
464463 path : ${{ github.workspace }}/openwrt/build_dir/target-*
465- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
464+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
466465 # ## ----------------------------------------------------------------- ###
467466 - name : ' Restore build_dir/host Directory from cache'
468467 id : build_dir_host-cache
@@ -472,7 +471,7 @@ jobs:
472471 CACHE_NAME : ' build_dir_host-cache'
473472 with :
474473 path : ${{ github.workspace }}/openwrt/build_dir/host
475- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
474+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
476475 # ## ----------------------------------------------------------------- ###
477476 - name : ' Restore build_dir/hostpkg Directory from cache'
478477 id : build_dir_hostpkg-cache
@@ -482,7 +481,7 @@ jobs:
482481 CACHE_NAME : ' build_dir_hostpkg-cache'
483482 with :
484483 path : ${{ github.workspace }}/openwrt/build_dir/hostpkg
485- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
484+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
486485 # ## ----------------------------------------------------------------- ###
487486 - name : ' Restore .ccache from cache'
488487 id : ccache-cache
@@ -492,7 +491,7 @@ jobs:
492491 CACHE_NAME : ' ccache-cache'
493492 with :
494493 path : ${{ github.workspace }}/openwrt/.ccache
495- key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ env.DATE }}
494+ key : ${{ env.CACHE_NAME }}-${{ runner.os }}-${{ steps.date.outputs.date }}
496495# ## ----------------------------------------------------------------- ###
497496 - name : Setup cache for OpenWRT (ccache)
498497 id : ccache
0 commit comments