dependencies.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. name: Download Build Dependencies
  2. permissions:
  3. contents: read
  4. actions: write
  5. on:
  6. workflow_call:
  7. jobs:
  8. download-dependencies:
  9. name: Download Dependencies
  10. runs-on: ubuntu-latest
  11. timeout-minutes: 20
  12. permissions:
  13. contents: read
  14. actions: write
  15. steps:
  16. - name: Download Wild KSU
  17. shell: bash
  18. run: |
  19. # Download and run KSU setup
  20. git clone "https://github.com/WildKernels/Wild_KSU.git" -b "canary" --depth=1
  21. git clone https://github.com/WildKernels/AnyKernel3.git -b gki-2.0 --depth=1
  22. echo "AnyKernel3 commit: $(cd AnyKernel3 && git rev-parse --short HEAD)"
  23. git clone https://github.com/WildKernels/kernel_patches.git --depth=1
  24. echo "Kernel Patches commit: $(cd kernel_patches && git rev-parse --short HEAD)"
  25. mkdir -p susfs_cache
  26. # List of all SUSFS branches we support
  27. BRANCHES=(
  28. "gki-android12-5.10"
  29. "gki-android13-5.10"
  30. "gki-android13-5.15"
  31. "gki-android14-5.15"
  32. "gki-android14-6.1"
  33. "gki-android15-6.6"
  34. "gki-android16-6.12"
  35. )
  36. for BRANCH in "${BRANCHES[@]}"; do
  37. # Clone SUSFS branch
  38. git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$BRANCH" --depth=1 "susfs_cache/$BRANCH" || {
  39. echo "Warning: Failed to clone branch $BRANCH (may not exist yet)"
  40. continue
  41. }
  42. COMMIT=$(cd "susfs_cache/$BRANCH" && git rev-parse --short HEAD 2>/dev/null || echo "N/A")
  43. echo " └─ Commit: $COMMIT"
  44. done
  45. BRANCH_COUNT=$(ls -d susfs_cache/* 2>/dev/null | wc -l)
  46. echo "SUSFS branches downloaded: $BRANCH_COUNT"
  47. mkdir -p git-repo
  48. curl -L https://storage.googleapis.com/git-repo-downloads/repo -o git-repo/repo
  49. chmod 0755 git-repo/repo
  50. - name: Upload Build Dependencies
  51. uses: actions/upload-artifact@v4
  52. with:
  53. name: build-dependencies
  54. path: |
  55. AnyKernel3/
  56. kernel_patches/
  57. susfs_cache/
  58. git-repo/
  59. Wild_KSU/
  60. Baseband-guard/
  61. compression-level: 9