Explorar el Código

Add ccache environment variables to bazelrc

jimsterino98 hace 4 meses
padre
commit
07a24489d8
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      .github/actions/use-bazcache/action.yml

+ 8 - 0
.github/actions/use-bazcache/action.yml

@@ -14,11 +14,19 @@ runs:
       cat >> .bazelrc << 'EOF'
       #build --disk_cache=${{ env.BCACHE_DIR }}
       build --sandbox_writable_path=${{ env.CCACHE_DIR }}
+      build --action_env=CC="ccache clang"
+      build --action_env=CXX="ccache clang++"
+      build --action_env=HOSTCC="ccache clang"
+      build --action_env=HOSTCXX="ccache clang++"
       EOF
       else
       touch .bazelrc
       cat >> .bazelrc << 'EOF'
       #build --disk_cache=${{ env.BCACHE_DIR }}
       build --sandbox_writable_path=${{ env.CCACHE_DIR }}
+      build --action_env=CC="ccache clang"
+      build --action_env=CXX="ccache clang++"
+      build --action_env=HOSTCC="ccache clang"
+      build --action_env=HOSTCXX="ccache clang++"
       EOF
       fi