Procházet zdrojové kódy

Add ccache cleanup step in build workflow

Add cleanup step for ccache when using make build type.
jimsterino98 před 4 měsíci
rodič
revize
0d070780c8
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      .github/workflows/build.yml

+ 5 - 1
.github/workflows/build.yml

@@ -280,8 +280,12 @@ jobs:
          branch: ${{ inputs.branch }}
          build_type: ${{ inputs.build_type }}
 
+      - name: clean up ccache
+        if: inputs.cache == 'true' && inputs.build_type == 'make'
+        run: ccache -c
+        
       - name: ccache stats
-        if: inputs.cache == 'true'
+        if: inputs.cache == 'true' && inputs.build_type == 'make'
         run: ccache -s -v || ccache -s
 
 #      - name: bazel cache stats