Bazel CI config: explicitly enable workspace wherever Bzlmod is disabled (#1276)

This commit is contained in:
Xùdōng Yáng 2024-09-04 19:15:48 -04:00 committed by GitHub
parent 1d8e362a22
commit 780f59568b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -29,8 +29,10 @@ tasks:
- "-//test:shell_script_inner_fun_test" - "-//test:shell_script_inner_fun_test"
build_flags: build_flags:
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
test_flags: test_flags:
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
ubuntu1804_examples_standalone: ubuntu1804_examples_standalone:
name: Examples (spawn_strategy=standalone) name: Examples (spawn_strategy=standalone)
platform: ubuntu1804 platform: ubuntu1804
@ -44,12 +46,14 @@ tasks:
- "dbg" - "dbg"
- "--spawn_strategy=standalone" - "--spawn_strategy=standalone"
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
test_targets: *linux_targets_standalone test_targets: *linux_targets_standalone
test_flags: test_flags:
- "-c" - "-c"
- "dbg" - "dbg"
- "--spawn_strategy=standalone" - "--spawn_strategy=standalone"
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
ubuntu2004_examples: ubuntu2004_examples:
name: Examples name: Examples
platform: ubuntu2004 platform: ubuntu2004
@ -61,8 +65,10 @@ tasks:
test_targets: *linux_targets test_targets: *linux_targets
build_flags: build_flags:
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
test_flags: test_flags:
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
ubuntu2004_examples_bzlmod: ubuntu2004_examples_bzlmod:
name: Examples (bzlmod) name: Examples (bzlmod)
platform: ubuntu2004 platform: ubuntu2004
@ -107,6 +113,7 @@ tasks:
- "--spawn_strategy=standalone" - "--spawn_strategy=standalone"
- "--noincompatible_enable_cc_toolchain_resolution" - "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
test_targets: *macos_targets_standalone test_targets: *macos_targets_standalone
test_flags: test_flags:
- "-c" - "-c"
@ -114,6 +121,7 @@ tasks:
- "--spawn_strategy=standalone" - "--spawn_strategy=standalone"
- "--noincompatible_enable_cc_toolchain_resolution" - "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
macos_examples: macos_examples:
name: Examples name: Examples
platform: macos platform: macos
@ -129,10 +137,12 @@ tasks:
build_flags: build_flags:
- "--noincompatible_enable_cc_toolchain_resolution" - "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
test_targets: *macos_targets test_targets: *macos_targets
test_flags: test_flags:
- "--noincompatible_enable_cc_toolchain_resolution" - "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
windows_examples: windows_examples:
name: Examples name: Examples
platform: windows platform: windows
@ -163,8 +173,10 @@ tasks:
test_targets: *windows_targets test_targets: *windows_targets
build_flags: build_flags:
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
test_flags: test_flags:
- "--noenable_bzlmod" - "--noenable_bzlmod"
- "--enable_workspace"
rbe_ubuntu2004_flags: rbe_ubuntu2004_flags:
name: Flags name: Flags
platform: rbe_ubuntu2004 platform: rbe_ubuntu2004