|
1 | 1 | ---
|
2 |
| -tasks: |
3 |
| - android-firebase-linux: |
| 2 | +common: |
| 3 | + android-firebase: &android-firebase |
4 | 4 | name: "Android Firebase Cloud Messaging"
|
5 |
| - platform: ubuntu1804 |
| 5 | + bazel: last_green |
6 | 6 | working_directory: ../android/firebase-cloud-messaging
|
| 7 | + build_flags: |
| 8 | + - "--incompatible_enable_android_toolchain_resolution" |
| 9 | + - "--android_platforms=//:arm64-v8a" |
| 10 | + build_targets: |
| 11 | + - "//app:app" |
| 12 | + android-ndk: &android-ndk |
| 13 | + name: "Android NDK" |
| 14 | + bazel: 6.3.2 |
| 15 | + working_directory: ../android/ndk |
| 16 | + build_flags: |
| 17 | + # TODO(https://github.com/bazelbuild/rules_android/issues/77): |
| 18 | + # Enable Android Platforms. |
| 19 | + - "--noincompatible_enable_android_toolchain_resolution" |
| 20 | + - "--fat_apk_cpu=arm64-v8a,x86" |
| 21 | + - "--android_crosstool_top=@androidndk//:toolchain" |
7 | 22 | build_targets:
|
8 |
| - - "..." |
| 23 | + - "//app/src/main:app" |
| 24 | + android-jetpack: &android-jetpack |
| 25 | + name: "Android Jetpack Compose" |
| 26 | + # Cannot upgrade this until rules_kotlin is compatible. |
| 27 | + bazel: 6.3.2 |
| 28 | + working_directory: ../android/jetpack-compose |
| 29 | + build_flags: |
| 30 | + - "--noincompatible_enable_android_toolchain_resolution" |
| 31 | + - "--remote_download_outputs=all" |
| 32 | + build_targets: |
| 33 | + - "//app/src/main:app" |
| 34 | + android-robolectric: &android-robolectric |
| 35 | + name: "Android Robolectric Testing" |
| 36 | + # Cannot upgrade this until rules_kotlin is compatible. |
| 37 | + bazel: 6.3.2 |
| 38 | + working_directory: ../android/robolectric-testing |
| 39 | + build_flags: |
| 40 | + - "--noincompatible_enable_android_toolchain_resolution" |
| 41 | + test_targets: |
| 42 | + - "//app:test" |
| 43 | + |
| 44 | +tasks: |
| 45 | + android-firebase-linux: |
| 46 | + platform: ubuntu1804 |
| 47 | + <<: *android-firebase |
9 | 48 | android-firebase-macos:
|
10 |
| - name: "Android Firebase Cloud Messaging" |
11 | 49 | platform: macos
|
12 |
| - working_directory: ../android/firebase-cloud-messaging |
13 |
| - build_targets: |
14 |
| - - "..." |
| 50 | + <<: *android-firebase |
15 | 51 | android-firebase-windows:
|
16 |
| - name: "Android Firebase Cloud Messaging" |
17 | 52 | platform: windows
|
18 |
| - working_directory: ../android/firebase-cloud-messaging |
19 |
| - build_targets: |
20 |
| - - "..." |
| 53 | + <<: *android-firebase |
21 | 54 | android-ndk-linux:
|
22 |
| - name: "Android NDK" |
23 | 55 | platform: ubuntu1804
|
24 |
| - working_directory: ../android/ndk |
25 | 56 | environment:
|
26 | 57 | ANDROID_NDK_HOME: /opt/android-ndk-r25b
|
27 |
| - build_flags: |
28 |
| - - "--fat_apk_cpu=arm64-v8a,x86" |
29 |
| - - "--android_crosstool_top=@androidndk//:toolchain" |
30 |
| - build_targets: |
31 |
| - - "//app/src/main:app" |
| 58 | + <<: *android-ndk |
32 | 59 | android-ndk-macos:
|
33 |
| - name: "Android NDK" |
34 | 60 | platform: macos
|
35 |
| - working_directory: ../android/ndk |
36 | 61 | environment:
|
37 | 62 | ANDROID_NDK_HOME: /Users/buildkite/android-ndk-r25b
|
38 |
| - build_flags: |
39 |
| - - "--fat_apk_cpu=arm64-v8a,x86" |
40 |
| - - "--android_crosstool_top=@androidndk//:toolchain" |
41 |
| - build_targets: |
42 |
| - - "//app/src/main:app" |
| 63 | + <<: *android-ndk |
43 | 64 | # NDK project is not building on Windows yet.
|
44 | 65 | # https://github.com/bazelbuild/examples/issues/94
|
45 | 66 | # android-ndk-windows:
|
46 |
| - # name: "Android NDK" |
47 | 67 | # platform: windows
|
48 |
| - # working_directory: ../android/ndk |
49 |
| - # build_targets: |
50 |
| - # - "//app/src/main:app" |
| 68 | + # <<: *android-ndk |
51 | 69 | android-jetpack-compose-linux:
|
52 |
| - name: "Android Jetpack Compose" |
53 | 70 | platform: ubuntu1804
|
54 |
| - working_directory: ../android/jetpack-compose |
55 |
| - build_flags: |
56 |
| - - "--remote_download_outputs=all" |
57 |
| - build_targets: |
58 |
| - - "//app/src/main:app" |
| 71 | + <<: *android-jetpack |
59 | 72 | android-jetpack-compose-macos:
|
60 |
| - name: "Android Jetpack Compose" |
61 | 73 | platform: macos
|
62 |
| - working_directory: ../android/jetpack-compose |
63 |
| - build_flags: |
64 |
| - - "--remote_download_outputs=all" |
65 |
| - build_targets: |
66 |
| - - "//app/src/main:app" |
| 74 | + <<: *android-jetpack |
67 | 75 | android-jetpack-compose-windows:
|
68 |
| - name: "Android Jetpack Compose" |
69 | 76 | platform: windows
|
70 |
| - working_directory: ../android/jetpack-compose |
71 |
| - build_flags: |
72 |
| - - "--remote_download_outputs=all" |
73 |
| - build_targets: |
74 |
| - - "//app/src/main:app" |
| 77 | + <<: *android-jetpack |
75 | 78 | android-robolectric-testing-linux:
|
76 |
| - name: "Android Robolectric Testing" |
77 | 79 | platform: ubuntu1804
|
78 |
| - working_directory: ../android/robolectric-testing |
79 |
| - build_targets: |
80 |
| - - "..." |
81 |
| - test_targets: |
82 |
| - - "..." |
| 80 | + <<: *android-robolectric |
83 | 81 | android-robolectric-testing-macos:
|
84 |
| - name: "Android Robolectric Testing" |
85 | 82 | platform: macos
|
86 |
| - working_directory: ../android/robolectric-testing |
87 |
| - build_targets: |
88 |
| - - "..." |
89 |
| - test_targets: |
90 |
| - - "..." |
| 83 | + <<: *android-robolectric |
91 | 84 | # android-robolectric-testing-windows:
|
92 |
| - # name: "Android Robolectric Testing" |
93 | 85 | # platform: windows
|
94 |
| - # working_directory: ../android/robolectric-testing |
95 |
| - # build_targets: |
96 |
| - # - "..." |
97 |
| - # test_targets: |
98 |
| - # - "..." |
| 86 | + # <<: *android-robolectric |
0 commit comments