action.yml 1.1 KB

12345678910111213141516171819202122232425
  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. git config --global user.name "github-actions[bot]"
  10. git config --global user.email "github-actions[bot]@users.noreply.github.com"
  11. mkdir -p "${{ github.workspace }}/kernel"
  12. mkdir -p "${{ github.workspace }}/git-repo"
  13. curl -L https://storage.googleapis.com/git-repo-downloads/repo -o "${{ github.workspace }}/git-repo/repo"
  14. chmod +x "${{ github.workspace }}/git-repo/repo"
  15. echo "${{ github.workspace }}/git-repo" >> "$GITHUB_PATH"
  16. if [ -d "${{ github.workspace }}/kernel_patches" ]; then rm -rf "${{ github.workspace }}/kernel_patches"; fi
  17. git clone https://github.com/WildKernels/kernel_patches.git "${{ github.workspace }}/kernel_patches"
  18. if [ -d "${{ github.workspace }}/AnyKernel3" ]; then rm -rf "${{ github.workspace }}/AnyKernel3"; fi
  19. git clone https://github.com/WildKernels/AnyKernel3.git -b gki-2.0 "${{ github.workspace }}/AnyKernel3"