action.yml 1.3 KB

1234567891011121314151617181920212223242526272829
  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"
  20. # Install build deps needed for BTF generation on older kernels (android12-5.10)
  21. sudo apt-get update -qq
  22. sudo apt-get install -y -qq dwarves libelf-dev