Skip to content

Commit

Permalink
Merge branch 'bazelbuild:main' into download
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon authored Jan 29, 2024
2 parents e26f9e6 + 877c68e commit 6702149
Show file tree
Hide file tree
Showing 4 changed files with 1,322 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
buildifier: latest
bazel: last_green

basic_example: &basic_example
working_directory: examples/basic
build_flags:
- "--incompatible_disallow_empty_glob"
- "--noincompatible_enable_cc_toolchain_resolution"
- "--fat_apk_cpu=arm64-v8a,x86"
- "--android_crosstool_top=@androidndk//:toolchain"
- "--incompatible_enable_android_toolchain_resolution"
- "--android_platforms=//:arm64-v8a,//:x86"
- "--enable_bzlmod=False"
build_targets:
- "//java/com/app:app"
Expand All @@ -16,9 +16,8 @@ basic_example_bzlmod: &basic_example_bzlmod
working_directory: examples/basic
build_flags:
- "--incompatible_disallow_empty_glob"
- "--noincompatible_enable_cc_toolchain_resolution"
- "--fat_apk_cpu=arm64-v8a,x86"
- "--android_crosstool_top=@androidndk//:toolchain"
- "--incompatible_enable_android_toolchain_resolution"
- "--android_platforms=//:arm64-v8a,//:x86"
- "--enable_bzlmod=True"
build_targets:
- "//java/com/app:app"
Expand All @@ -27,9 +26,8 @@ cpu_features: &cpu_features
working_directory: examples/cpu_features
build_flags:
- "--incompatible_disallow_empty_glob"
- "--noincompatible_enable_cc_toolchain_resolution"
- "--cpu=arm64-v8a"
- "--crosstool_top=@androidndk//:toolchain"
- "--incompatible_enable_android_toolchain_resolution"
- "--platforms=//:arm64-v8a"
build_targets:
- "//:all"

Expand All @@ -45,15 +43,21 @@ macos: &macos

tasks:
basic_example_ubuntu2004:
name: Basic Example
<<: [*ubuntu2004, *basic_example]
basic_example_bzlmod_ubuntu2004:
name: Basic Example Bzlmod
<<: [*ubuntu2004, *basic_example_bzlmod]
basic_example_macos:
name: Basic Example
<<: [*macos, *basic_example]
basic_example_bzlmod_macos:
name: Basic Example Bzlmod
<<: [*macos, *basic_example_bzlmod]

cpu_features_ubuntu2004:
name: CPU Features
<<: [*ubuntu2004, *cpu_features]
cpu_features_macos:
name: CPU Features
<<: [*macos, *cpu_features]
15 changes: 15 additions & 0 deletions examples/basic/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
platform(
name = "arm64-v8a",
constraint_values = [
"@platforms//cpu:arm64",
"@platforms//os:android",
],
)

platform(
name = "x86",
constraint_values = [
"@platforms//cpu:x86_32",
"@platforms//os:android",
],
)
Loading

0 comments on commit 6702149

Please sign in to comment.