config 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: 27.0.3
  4. var:
  5. container:
  6. use_container: 1
  7. deps:
  8. - unzip
  9. - python
  10. setup: |
  11. mkdir -p /var/tmp/dist
  12. tar -C /var/tmp/dist -xf $rootdir/[% c("compiler_tarfile") %]
  13. export ANDROID_SDK_HOME=/var/tmp/dist/[% project %]/android-sdk-linux
  14. export ANDROID_NDK_HOME=/var/tmp/dist/[% project %]/android-ndk
  15. export GRADLE_HOME=/var/tmp/dist/[% project %]/gradle
  16. export ANDROID_HOME=$ANDROID_SDK_HOME
  17. export GRADLE_USER_HOME=$GRADLE_HOME
  18. export PATH=$PATH:$ANDROID_NDK_HOME/[% c("var/toolchain_arch") %]/bin
  19. google_repo: https://dl.google.com/android/repository
  20. input_files:
  21. - project: container-image
  22. - URL: '[% c("var/google_repo") %]/build-tools_r27.0.3-linux.zip'
  23. name: build_tools
  24. sha256sum: 5e1f4fc5203f13de120c56f9cc103bb2e57d940959547506196ab10ddc9e6b97
  25. - URL: '[% c("var/google_repo") %]/platform-28_r04.zip'
  26. name: platform
  27. sha256sum: 967f8ca99b71d337aa9c7781f9d65dd8110bf5c4746f44304047bf71b20d0ded
  28. - URL: '[% c("var/google_repo") %]/platform-tools_r28.0.3-linux.zip'
  29. name: platform_tools
  30. sha256sum: 38fccfe8d2646dd12bdd7cad22fedba0493425b98ebd6d620e4c670b9af4c53f
  31. - URL: '[% c("var/google_repo") %]/sdk-tools-linux-4333796.zip'
  32. name: android_sdk_tools
  33. sha256sum: 92ffee5a1d98d856634e8b71132e8a95d96c83a63fde1099be3d86df3106def9
  34. - URL: '[% c("var/google_repo") %]/android-ndk-r17b-linux-x86_64.zip'
  35. name: android_ndk_compiler
  36. sha256sum: 5dfbbdc2d3ba859fed90d0e978af87c71a91a5be1f6e1c40ba697503d48ccecd
  37. - URL: https://services.gradle.org/distributions/gradle-4.10.2-bin.zip
  38. name: gradle_bin
  39. sha256sum: b49c6da1b2cb67a0caf6c7480630b51c70a11ca2016ff2f555eaeda863143a29