config 3.72 KB
Newer Older
sisbell's avatar
sisbell committed
1
# vim: filetype=yaml sw=2
Georg Koppen's avatar
Georg Koppen committed
2
3
4
filename: '[% project %]-[% c("version") %]-[% c("version_old") %]-[% c("var/build_id") %].tar.gz'
version: 29.0.3
version_old: 28.0.3
sisbell's avatar
sisbell committed
5
6
7
8
9
10
11
12
13
14
var:
  container:
    use_container: 1
  deps:
    - unzip
    - python
  setup: |
    mkdir -p /var/tmp/dist
    tar -C /var/tmp/dist -xf $rootdir/[% c("compiler_tarfile") %]
    export ANDROID_SDK_HOME=/var/tmp/dist/[% project %]/android-sdk-linux
Georg Koppen's avatar
Georg Koppen committed
15
16
17
18
    # By default we use the old NDK which is the one GeckoView is using.
    # However, we can overwrite that per project if needed (e.g.
    # application-services is currently on a newer NDK).
    export ANDROID_NDK_HOME=/var/tmp/dist/[% project %]/android-ndk/android-ndk-r[% c("var/android_ndk_version_old") %]
sisbell's avatar
sisbell committed
19
    export GRADLE_HOME=/var/tmp/dist/[% project %]/gradle
20
21
    export ANDROID_HOME=$ANDROID_SDK_HOME
    export GRADLE_USER_HOME=$GRADLE_HOME
Georg Koppen's avatar
Georg Koppen committed
22
    export PATH=$PATH:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$GRADLE_HOME/gradle-[% c("var/gradle_version") %]/bin
sisbell's avatar
sisbell committed
23
  google_repo: https://dl.google.com/android/repository
Georg Koppen's avatar
Georg Koppen committed
24
25
26
27
28
29
30
31
32
  android_api_level: 29
  android_api_level_old: 28
  android_platform_revision: 04
  android_ndk_version: 21
  android_ndk_version_old: 20
  android_ndk_revision: d
  gradle_version_new: 6.3
  gradle_version: 5.6.4
  gradle_version_old: 5.1.1
sisbell's avatar
sisbell committed
33
34
input_files:
  - project: container-image
Georg Koppen's avatar
Georg Koppen committed
35
  - URL: '[% c("var/google_repo") %]/build-tools_r[% c("version") %]-linux.zip'
36
    name: build_tools
Georg Koppen's avatar
Georg Koppen committed
37
38
39
40
41
    sha256sum: 5652d8cd5eaaade0b853bfe0ae6cbfa0706a6f70a0ebb25ca24a6f484ec3d855
  - URL: '[% c("var/google_repo") %]/build-tools_r[% c("version_old") %]-linux.zip'
    name: build_tools_old
    sha256sum: 7954956a40633c88f693d638cbc23f68e9e2499dc7a4b7dfdaf6a3e91387749a
  - URL: '[% c("var/google_repo") %]/platform-[% c("var/android_api_level") %]_r[% c("var/android_platform_revision") %].zip'
42
    name: platform
Georg Koppen's avatar
Georg Koppen committed
43
44
45
    sha256sum: c9eaf2ce4e8fa6f5a8036bd3c95363d003733bf0a1bd349718cadf802db44c69
  - URL: '[% c("var/google_repo") %]/platform-[% c("var/android_api_level_old") %]_r[% c("var/android_platform_revision") %].zip'
    name: platform_old
46
    sha256sum: 967f8ca99b71d337aa9c7781f9d65dd8110bf5c4746f44304047bf71b20d0ded
Georg Koppen's avatar
Georg Koppen committed
47
48
49
50
  # ./mach bootstrap is fetching the latest version, so it does not seem to
  # matter which particular version we are using. Pin to the one fitting best to
  # SDK version/build-tools version.
  - URL: '[% c("var/google_repo") %]/platform-tools_r[% c("version") %]-linux.zip'
51
    name: platform_tools
Georg Koppen's avatar
Georg Koppen committed
52
    sha256sum: 49e676ec90bff1f7d7dfe4fb7d0ab78e14fa8fb06a8dccca2ef57a1bc29497a0
sisbell's avatar
sisbell committed
53
54
55
  - URL: '[% c("var/google_repo") %]/sdk-tools-linux-4333796.zip'
    name: android_sdk_tools
    sha256sum: 92ffee5a1d98d856634e8b71132e8a95d96c83a63fde1099be3d86df3106def9
Georg Koppen's avatar
Georg Koppen committed
56
  - URL: '[% c("var/google_repo") %]/android-ndk-r[% c("var/android_ndk_version") %][% c("var/android_ndk_revision") %]-linux-x86_64.zip'
sisbell's avatar
sisbell committed
57
    name: android_ndk_compiler
Georg Koppen's avatar
Georg Koppen committed
58
59
60
61
62
63
64
65
    sha256sum: dd6dc090b6e2580206c64bcee499bc16509a5d017c6952dcd2bed9072af67cbd
  - URL: '[% c("var/google_repo") %]/android-ndk-r[% c("var/android_ndk_version_old") %]-linux-x86_64.zip'
    name: android_ndk_compiler_old
    sha256sum: 57435158f109162f41f2f43d5563d2164e4d5d0364783a9a6fab3ef12cb06ce0
  - URL: https://services.gradle.org/distributions/gradle-[% c("var/gradle_version_new") %]-bin.zip
    name: gradle_bin_new
    sha256sum: 038794feef1f4745c6347107b6726279d1c824f3fc634b60f86ace1e9fbd1768
  - URL: https://services.gradle.org/distributions/gradle-[% c("var/gradle_version") %]-bin.zip
sisbell's avatar
sisbell committed
66
    name: gradle_bin
Georg Koppen's avatar
Georg Koppen committed
67
68
69
70
    sha256sum: 1f3067073041bc44554d0efe5d402a33bc3d3c93cc39ab684f308586d732a80d
  - URL: https://services.gradle.org/distributions/gradle-[% c("var/gradle_version_old") %]-bin.zip
    name: gradle_bin_old
    sha256sum: 4953323605c5d7b89e97d0dc7779e275bccedefcdac090aec123375eae0cc798