action.yml 623 B

123456789101112131415161718192021222324
  1. name: change clang variables to ccache clang
  2. description: change clang cariable to ccache clang
  3. runs:
  4. using: composite
  5. steps:
  6. - name: change variables
  7. shell: bash
  8. run: |
  9. cd "$CONFIG"
  10. if [[ -d kernel_platform ]]; then
  11. cd kernel_platform
  12. touch .bazelrc
  13. cat >> .bazelrc << 'EOF'
  14. #build --disk_cache=${{ env.BCACHE_DIR }}
  15. build --sandbox_writable_path=${{ env.CCACHE_DIR }}
  16. EOF
  17. else
  18. touch .bazelrc
  19. cat >> .bazelrc << 'EOF'
  20. #build --disk_cache=${{ env.BCACHE_DIR }}
  21. build --sandbox_writable_path=${{ env.CCACHE_DIR }}
  22. EOF
  23. fi