Skip to content

Commit 12b78ba

Browse files
committed
Set ndk to 25b for android_ndk_repository compatibility
1 parent 7ea2909 commit 12b78ba

File tree

1 file changed

+47
-25
lines changed

1 file changed

+47
-25
lines changed

.bazelci/presubmit.yml

Lines changed: 47 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,44 @@
11
---
2+
# Common task configurations.
3+
.unittests: &unittests
4+
build_flags: ${{ test_flags }}
5+
test_flags: ${{ test_flags }}
6+
test_targets:
7+
- "//src/..."
8+
build_targets:
9+
- "//src/..."
10+
11+
.integration_tests: &integration_tests
12+
name: "Integration Tests"
13+
platform: ${{ platform.name }}
14+
environment:
15+
ANDROID_NDK_HOME: ${{ platform.android_ndk_home }}
16+
test_flags: ${{ integration_shard_flags }}
17+
test_targets:
18+
- //examples:all
19+
20+
# Common platform configurations.
21+
.ubuntu2404: &ubuntu2404
22+
platform: ubuntu2404
23+
environment:
24+
ANDROID_NDK_HOME: /opt/android-ndk-r25b
25+
26+
.ubuntu2204: &ubuntu2204
27+
platform: ubuntu2204
28+
environment:
29+
ANDROID_NDK_HOME: /opt/android-ndk-r25b
30+
31+
.macos: &macos
32+
platform: macos
33+
environment:
34+
ANDROID_NDK_HOME: /Users/buildkite/android-ndk-r25b
35+
36+
# bazelci pipeline
237
matrix:
3-
unittest_platform:
4-
- ubuntu2404
5-
- ubuntu2204
6-
integration_platform:
7-
- ubuntu2404
8-
- ubuntu2204
938
integration_shard_flags:
1039
- ["--test_tag_filters=shard_0", "--config=rbe"]
1140
- ["--test_tag_filters=shard_1", "--config=rbe"]
1241
- ["--test_tag_filters=shard_2", "--config=rbe"]
13-
# - macos
14-
# - windows re-enable when rules_bazel_integration_test can support custom test runner on windows.
1542
test_flags:
1643
- ["--enable_bzlmod=true"]
1744
validate_config: 1
@@ -22,21 +49,16 @@ buildifier:
2249
# keep this argument in sync with .pre-commit-config.yaml
2350
warnings: "-confusing-name,-constant-glob,-duplicated-name,-function-docstring,-function-docstring-args,-function-docstring-header,-module-docstring,-name-conventions,-no-effect,-constant-glob,-provider-params,-print,-rule-impl-return,-bzl-visibility,-unnamed-macro,-uninitialized,-unreachable"
2451
tasks:
25-
unittests:
26-
name: "Unit Tests"
27-
platform: ${{ unittest_platform }}
28-
build_flags: ${{ test_flags }}
29-
test_flags: ${{ test_flags }}
30-
test_targets:
31-
- "//src/..."
32-
build_targets:
33-
- "//src/..."
34-
integration_tests:
35-
name: "Integration Tests"
36-
platform: ${{ integration_platform }}
37-
test_flags: ${{ integration_shard_flags }}
38-
test_targets:
39-
- //examples:all
52+
macos_unittests:
53+
<<: [ *macos, *unittests ]
54+
ubuntu2404_unittests:
55+
<<: [*ubuntu2404, *unittests]
56+
ubuntu2404_integration_tests:
57+
<<: [*ubuntu2404, *integration_tests]
58+
ubuntu2204_unittests:
59+
<<: [*ubuntu2204, *unittests]
60+
ubuntu2204_integration_tests:
61+
<<: [*ubuntu2204, *integration_tests]
4062
rbe_ubuntu1604:
4163
test_targets:
4264
- "--"
@@ -52,7 +74,7 @@ tasks:
5274
- "--strategy=KotlinCompile=remote"
5375
stardoc:
5476
name: Stardoc api documentation
55-
platform: ubuntu2404
77+
<<: *ubuntu2404
5678
build_flags:
5779
- "--enable_bzlmod=true"
5880
build_targets:
@@ -61,7 +83,7 @@ tasks:
6183
- //docs:are_docs_up_to_date_test
6284
ktlint:
6385
name: KtLint
64-
platform: ubuntu2404
86+
<<: *ubuntu2404
6587
test_targets:
6688
- //...
6789
test_flags:

0 commit comments

Comments
 (0)