Skip to content

Commit

Permalink
Update macos presubmit runners to macos_arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Nov 14, 2024
1 parent 2257a60 commit 1925ac0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ tasks:
build_targets: *default_linux_targets
test_targets: *default_linux_targets
macos:
platform: macos_arm64
build_targets: *default_macos_targets
test_targets: *default_macos_targets
coverage_targets: *default_macos_targets
Expand All @@ -112,7 +113,7 @@ tasks:
post_shell_commands: *coverage_validation_post_shell_commands
macos_split_coverage_postprocessing:
name: Split Coverage Postprocessing
platform: macos
platform: macos_arm64
shell_commands: *split_coverage_postprocessing_shell_commands
coverage_targets: *default_macos_targets
post_shell_commands: *coverage_validation_post_shell_commands
Expand All @@ -127,7 +128,7 @@ tasks:
- "--compilation_mode=opt"
macos_opt:
name: Opt Mode
platform: macos
platform: macos_arm64
build_targets: *default_macos_targets
test_targets: *default_macos_targets
build_flags:
Expand Down Expand Up @@ -173,15 +174,15 @@ tasks:
bazel: "rolling"
macos_with_aspects:
name: With Aspects
platform: macos
platform: macos_arm64
build_flags: *aspects_flags
build_targets: *default_macos_targets
test_targets: *default_macos_targets
coverage_targets: *default_macos_targets
post_shell_commands: *coverage_validation_post_shell_commands
macos_rolling_with_aspects:
name: "Macos Rolling Bazel Version With Aspects"
platform: macos
platform: macos_arm64
build_flags: *aspects_flags
build_targets: *default_macos_targets
test_targets: *default_macos_targets
Expand Down Expand Up @@ -455,7 +456,7 @@ tasks:
build_flags: *aspects_flags
macos_examples:
name: Examples
platform: macos
platform: macos_arm64
working_directory: examples
build_targets:
- "//..."
Expand Down Expand Up @@ -528,7 +529,7 @@ tasks:
build_flags: *aspects_flags
crate_universe_examples_macos:
name: Crate Universe Examples
platform: macos
platform: macos_arm64
working_directory: examples/crate_universe
run_targets: *crate_universe_vendor_example_targets
build_targets:
Expand All @@ -538,7 +539,7 @@ tasks:
build_flags: *aspects_flags
crate_universe_unnamed_examples_macos:
name: Crate Universe Unnamed Examples
platform: macos
platform: macos_arm64
working_directory: examples/crate_universe_unnamed
run_targets: *crate_universe_unnamed_vendor_example_targets
build_targets:
Expand Down Expand Up @@ -660,7 +661,7 @@ tasks:
ANDROID_NDK_HOME: /opt/android-ndk-r25b
android_examples_macos:
name: Android Examples
platform: macos
platform: macos_arm64
working_directory: examples/android
build_flags:
- "--incompatible_enable_android_toolchain_resolution"
Expand All @@ -675,13 +676,13 @@ tasks:
ANDROID_NDK_HOME: /Users/buildkite/android-ndk-r25b
ios_examples:
name: iOS Examples
platform: macos
platform: macos_arm64
working_directory: examples/ios
build_targets:
- "//..."
ios_build:
name: iOS build script cross compile test
platform: macos
platform: macos_arm64
working_directory: examples/ios_build
test_flags:
- "--cpu=ios_x86_64"
Expand All @@ -697,7 +698,7 @@ tasks:
# - "//..."
musl_cross_compiling_macos_to_linux:
name: Musl cross compiling test from macOS to Linux
platform: macos
platform: macos_arm64
working_directory: examples/musl_cross_compiling
build_targets:
- "//..."
Expand Down Expand Up @@ -754,7 +755,7 @@ tasks:
- "//..."
macos_bzlmod_cross_compile:
name: Cross compilation with bzlmod on macOS
platform: macos
platform: macos_arm64
working_directory: examples/bzlmod/cross_compile
build_targets:
- "//:all"
Expand Down Expand Up @@ -790,7 +791,7 @@ tasks:
- "//..."
macos_bzlmod_bcr:
name: bzlmod BCR presubmit
platform: macos
platform: macos_arm64
working_directory: examples/bzlmod/hello_world
test_flags: *bzlmod_flags
run_targets:
Expand Down Expand Up @@ -828,7 +829,7 @@ tasks:
# A newer version than is specified in the .bazel_version file is needed for
# --incompatible_use_plus_in_repo_names'
bazel: *minimum_bazel_version
platform: macos
platform: macos_arm64
working_directory: examples/bzlmod/hello_world
test_flags: *bzlmod_plus_repo_names_flags
run_targets:
Expand Down
2 changes: 1 addition & 1 deletion .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bcr_test_module:
module_path: ""
matrix:
platform: ["macos", "ubuntu2004"]
platform: ["macos_arm64", "ubuntu2004"]
bazel: ["6.x", "7.x"]
tasks:
run_tests:
Expand Down

0 comments on commit 1925ac0

Please sign in to comment.