Skip to content

Commit

Permalink
Merge pull request #226 from comius:renenable-bazel-head
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 693670938
  • Loading branch information
Blaze Rules Copybara committed Nov 6, 2024
2 parents 216c86c + c42a088 commit 1bcd191
Show file tree
Hide file tree
Showing 5 changed files with 4,269 additions and 33 deletions.
70 changes: 44 additions & 26 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
build_targets: &build_targets
- "//..."
- "-//docs/..."
test_targets: &test_targets
- "//..."

build_targets_bzlmod: &build_targets_bzlmod
- "//..."
test_targets_bzlmod: &test_targets_bzlmod
- "//..."
- "-//docs/..."

buildifier:
version: latest
Expand All @@ -17,27 +14,31 @@ buildifier:

tasks:
ubuntu2004:
name: "Bazel LTS (workspace)"
build_targets: *build_targets
build_flags:
- "--config=nobzlmod"
test_targets: *test_targets
test_flags:
- "--config=nobzlmod"
macos:
name: "Bazel LTS (workspace)"
build_targets: *build_targets
build_flags:
- "--config=nobzlmod"
test_targets: *test_targets
test_flags:
- "--config=nobzlmod"
windows:
name: "Bazel LTS (workspace)"
build_targets: *build_targets
build_flags:
- "--config=nobzlmod"
test_targets: *test_targets
test_flags:
- "--config=nobzlmod"
ubuntu2004_bzlmod:
name: "Bazel LTS (bzlmod)"
platform: ubuntu2004
build_targets: *build_targets
build_flags:
Expand All @@ -48,6 +49,7 @@ tasks:
- "--config=bzlmod"
- "--lockfile_mode=error"
macos_bzlmod:
name: "Bazel LTS (bzlmod)"
platform: macos
build_targets: *build_targets
build_flags:
Expand All @@ -58,6 +60,7 @@ tasks:
- "--config=bzlmod"
- "--lockfile_mode=error"
windows_bzlmod:
name: "Bazel LTS (bzlmod)"
platform: windows
build_targets: *build_targets
build_flags:
Expand Down Expand Up @@ -94,30 +97,45 @@ tasks:
# test_targets: *test_targets
# test_flags:
# - "--config=nobzlmod"
# ubuntu2004_head_bzlmod:
ubuntu2004_head_bzlmod:
name: "Bazel@HEAD (bzlmod)"
bazel: last_green
platform: ubuntu2004
build_flags:
- "--config=bzlmod"
build_targets: *build_targets
test_flags:
- "--config=bzlmod"
test_targets: *test_targets
macos_head_bzlmod:
name: "Bazel@HEAD (bzlmod)"
bazel: last_green
platform: macos
build_flags:
- "--config=bzlmod"
build_targets: *build_targets
test_flags:
- "--config=bzlmod"
test_targets: *test_targets
windows_head_bzlmod:
name: "Bazel@HEAD (bzlmod)"
bazel: last_green
platform: windows
build_flags:
- "--config=bzlmod"
build_targets: *build_targets
test_flags:
- "--config=bzlmod"
test_targets: *test_targets
# docs:
# name: "Docs"
# bazel: last_green
# platform: ubuntu2004
# build_flags:
# - "--config=bzlmod"
# build_targets: *build_targets_bzlmod
# test_flags:
# - "--config=bzlmod"
# test_targets: *test_targets_bzlmod
# macos_head_bzlmod:
# bazel: last_green
# platform: macos
# build_flags:
# - "--config=bzlmod"
# build_targets: *build_targets_bzlmod
# test_flags:
# - "--config=bzlmod"
# test_targets: *test_targets_bzlmod
# windows_head_bzlmod:
# bazel: last_green
# platform: windows
# build_flags:
# - "--config=bzlmod"
# build_targets: *build_targets_bzlmod
# build_targets:
# - "//docs/..."
# test_flags:
# - "--config=bzlmod"
# test_targets: *test_targets_bzlmod
# test_targets:
# - "//docs/..."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/bazel-*
MODULE.bazel.lock
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ bazel_dep(name = "rules_cc", version = "0.0.1")
bazel_dep(name = "rules_license", version = "0.0.7")

# Dependencies needed in tests
bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc")
bazel_dep(name = "stardoc", version = "0.7.1", dev_dependency = True, repo_name = "io_bazel_stardoc")
bazel_dep(name = "googletest", version = "1.11.0", dev_dependency = True, repo_name = "com_google_googletest")
bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = True)
Loading

0 comments on commit 1bcd191

Please sign in to comment.