blob: 00a5435f72d5e7b114e1757f59e54d1855f5e5e9 [file] [log] [blame]
---
matrix:
platform:
- ubuntu1804
- ubuntu2004
- macos
.common_flags: &common_flags
? "--incompatible_disable_starlark_host_transitions"
.bzlmod_flags: &bzlmod_flags
<<: *common_flags
? "--enable_bzlmod"
.windows_flags: &windows_flags
<<: *common_flags
# Workaround for https://github.com/bazelbuild/continuous-integration/issues/1012
? "--noexperimental_repository_cache_hardlinks"
.windows_bzlmod_flags: &windows_bzlmod_flags
<<: *windows_flags
? "--enable_bzlmod"
.common_task_config: &common_task_config
build_flags: *common_flags
build_targets:
- "//..."
test_flags: *common_flags
test_targets:
- "//..."
.bzlmod_task_config: &bzlmod_task_config
<<: *common_task_config
build_flags: *bzlmod_flags
test_flags: *bzlmod_flags
.windows_task_config: &windows_task_config
<<: *common_task_config
build_flags: *windows_flags
test_flags: *windows_flags
.windows_bzlmod_task_config: &windows_bzlmod_task_config
<<: *common_task_config
build_flags: *windows_bzlmod_flags
test_flags: *windows_bzlmod_flags
tasks:
build_and_test:
<<: *common_task_config
name: Build and test
platform: ${{ platform }}
build_and_test_windows:
<<: *windows_task_config
name: Build and test - Windows
platform: windows
build_and_test_last_green:
<<: *common_task_config
name: Build and test - Bazel last green
platform: ${{ platform }}
bazel: last_green
build_and_test_last_green_windows:
<<: *windows_task_config
name: Build and test - Bazel last green - Windows
platform: windows
bazel: last_green
bzlmod:
<<: *bzlmod_task_config
name: Bzlmod example
platform: ${{ platform }}
working_directory: test/bzlmod
bzlmod_windows:
<<: *windows_bzlmod_task_config
name: Bzlmod example - Windows
platform: windows
working_directory: test/bzlmod
buildifier: latest