@@ -243,7 +243,14 @@ jobs:
243243 uses : actions/cache@v4
244244 with :
245245 path : /github/home/.cache/ccache
246- key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-32x-ccache-${{ hashFiles('**/*.cpp', '**/*.h', '**/*.hxx', '**/*.cxx', '**/*.c', '**/premake5.lua') }}
246+ key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-32x-ccache-${{ hashFiles(
247+ format('{0}**/*.cpp', inputs.PROJECT_PATH),
248+ format('{0}**/*.h', inputs.PROJECT_PATH),
249+ format('{0}**/*.hxx', inputs.PROJECT_PATH),
250+ format('{0}**/*.cxx', inputs.PROJECT_PATH),
251+ format('{0}**/*.c', inputs.PROJECT_PATH),
252+ format('{0}**/premake5.lua', inputs.PROJECT_PATH)
253+ ) }}
247254 restore-keys : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-32x-ccache
248255
249256 - name : Generate Project
@@ -263,6 +270,10 @@ jobs:
263270 export CXX="ccache g++"
264271 make ${{inputs.ADDITIONAL_ARGS_32x}}
265272
273+ - name : Show ccache stats
274+ if : inputs.BUILD_CACHE == 'true'
275+ run : ccache -s
276+
266277 - uses : actions/upload-artifact@v4
267278 name : Upload ${{env.PROJECT_NAME_LINUX32}}.${{inputs.LINUX_FILEEXTENTION}} (Artifact)
268279 if : inputs.UPLOAD == 'artifact'
@@ -363,7 +374,14 @@ jobs:
363374 uses : actions/cache@v4
364375 with :
365376 path : /github/home/.cache/ccache
366- key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-64x-ccache-${{ hashFiles('**/*.cpp', '**/*.h', '**/*.hxx', '**/*.cxx', '**/*.c', '**/premake5.lua') }}
377+ key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-64x-ccache-${{ hashFiles(
378+ format('{0}**/*.cpp', inputs.PROJECT_PATH),
379+ format('{0}**/*.h', inputs.PROJECT_PATH),
380+ format('{0}**/*.hxx', inputs.PROJECT_PATH),
381+ format('{0}**/*.cxx', inputs.PROJECT_PATH),
382+ format('{0}**/*.c', inputs.PROJECT_PATH),
383+ format('{0}**/premake5.lua', inputs.PROJECT_PATH)
384+ ) }}
367385 restore-keys : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-64x-ccache
368386
369387 - name : Generate Project
@@ -383,6 +401,10 @@ jobs:
383401 export CXX="ccache g++"
384402 make config=releasewithsymbols_x86_64 ${{inputs.ADDITIONAL_ARGS_64x}}
385403
404+ - name : Show ccache stats
405+ if : inputs.BUILD_CACHE == 'true'
406+ run : ccache -s
407+
386408 - uses : actions/upload-artifact@v4
387409 name : Upload ${{env.PROJECT_NAME_LINUX64}}.${{inputs.LINUX_FILEEXTENTION}} (Artifact)
388410 if : inputs.UPLOAD == 'artifact'
@@ -487,7 +509,14 @@ jobs:
487509 uses : actions/cache@v4
488510 with :
489511 path : ${{ inputs.PROJECT_PATH }}projects/
490- key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-32x-ccache-${{ hashFiles('**/*.cpp', '**/*.h', '**/*.hxx', '**/*.cxx', '**/*.c', '**/premake5.lua') }}
512+ key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-32x-ccache-${{ hashFiles(
513+ format('{0}**/*.cpp', inputs.PROJECT_PATH),
514+ format('{0}**/*.h', inputs.PROJECT_PATH),
515+ format('{0}**/*.hxx', inputs.PROJECT_PATH),
516+ format('{0}**/*.cxx', inputs.PROJECT_PATH),
517+ format('{0}**/*.c', inputs.PROJECT_PATH),
518+ format('{0}**/premake5.lua', inputs.PROJECT_PATH)
519+ ) }}
491520 restore-keys : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-32x
492521
493522 - name : Generate Project
@@ -579,7 +608,14 @@ jobs:
579608 uses : actions/cache@v4
580609 with :
581610 path : ${{ inputs.PROJECT_PATH }}projects/
582- key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-64x-ccache-${{ hashFiles('**/*.cpp', '**/*.h', '**/*.hxx', '**/*.cxx', '**/*.c', '**/premake5.lua') }}
611+ key : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-64x-ccache-${{ hashFiles(
612+ format('{0}**/*.cpp', inputs.PROJECT_PATH),
613+ format('{0}**/*.h', inputs.PROJECT_PATH),
614+ format('{0}**/*.hxx', inputs.PROJECT_PATH),
615+ format('{0}**/*.cxx', inputs.PROJECT_PATH),
616+ format('{0}**/*.c', inputs.PROJECT_PATH),
617+ format('{0}**/premake5.lua', inputs.PROJECT_PATH)
618+ ) }}
583619 restore-keys : ${{ runner.os }}-${{ inputs.PROJECT_NAME }}-64x
584620
585621 - name : Generate Project
0 commit comments