action.yml 992 B

123456789101112131415161718192021
  1. name: 'Setup Build Environment'
  2. description: 'Clones dependencies and exports mkbootimg/avbtool paths'
  3. runs:
  4. using: composite
  5. steps:
  6. - shell: bash
  7. run: |
  8. set -euo pipefail
  9. mkdir -p "${{ github.workspace }}/kernel"
  10. mkdir -p "${{ github.workspace }}/git-repo"
  11. curl -L https://storage.googleapis.com/git-repo-downloads/repo -o "${{ github.workspace }}/git-repo/repo"
  12. chmod +x "${{ github.workspace }}/git-repo/repo"
  13. echo "${{ github.workspace }}/git-repo" >> "$GITHUB_PATH"
  14. if [ -d "${{ github.workspace }}/kernel_patches" ]; then rm -rf "${{ github.workspace }}/kernel_patches"; fi
  15. git clone https://github.com/WildKernels/kernel_patches.git "${{ github.workspace }}/kernel_patches"
  16. if [ -d "${{ github.workspace }}/AnyKernel3" ]; then rm -rf "${{ github.workspace }}/AnyKernel3"; fi
  17. git clone https://github.com/WildKernels/AnyKernel3.git -b gki-2.0 "${{ github.workspace }}/AnyKernel3"