action.yml 697 B

1234567891011121314151617181920212223
  1. name: 'Setup Bazel Cache'
  2. description: 'Create Bazel cache directory for newer kernels'
  3. inputs:
  4. version:
  5. description: 'Kernel config version (e.g., android14-6.1)'
  6. required: true
  7. runs:
  8. using: 'composite'
  9. steps:
  10. - name: Setup Bazel Cache
  11. shell: bash
  12. if: |
  13. inputs.version == 'android14-5.15' ||
  14. inputs.version == 'android14-6.1' ||
  15. inputs.version == 'android15-6.6' ||
  16. inputs.version == 'android16-6.12'
  17. working-directory: ${{ github.workspace }}
  18. run: |
  19. set -euo pipefail
  20. export BAZEL_CACHE_DIR="/home/runner/.cache/bazel"
  21. mkdir -p "$BAZEL_CACHE_DIR"
  22. echo "BAZEL_CACHE_DIR: $BAZEL_CACHE_DIR"