Skip to content

Commit

Permalink
Enable CI test with Bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Nov 11, 2021
1 parent bf429fa commit b765185
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
41 changes: 32 additions & 9 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
---

build_targets: &build_targets
- "//..."
# TODO: Look into broken targets in //toolchains
- "-//toolchains/..."


build_targets_bzlmod: &build_targets
- "//..."
- "-//toolchains/..."
# TODO(pcloudy): pkg_tar doesn't work with Bzlmod due to https://github.com/bazelbuild/bazel/issues/14259
# Enable once the issue is fixed.
- "-//distro/..."

buildifier:
version: latest
warnings: "all"
tasks:
ubuntu2004:
build_targets:
- "//..."
- "-//toolchains/..."
build_targets: *build_targets
macos:
build_targets:
- "//..."
- "-//toolchains/..."
build_targets: *build_targets
windows:
build_targets:
- "//..."
- "-//toolchains/..."
build_targets: *build_targets
ubuntu2004_bzlmod:
bazel: last_green
build_flags:
"--config=bzlmod"
build_targets: *build_targets_bzlmod
macos_bzlmod:
bazel: last_green
build_flags:
"--config=bzlmod"
build_targets: *build_targets_bzlmod
windows_bzlmod:
bazel: last_green
build_flags:
"--config=bzlmod"
build_targets: *build_targets_bzlmod
2 changes: 2 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ use_repo(toolchains, "local_jdk")
# Declare all remote jdk toolchain config repos
[use_repo(toolchains, repo + "_toolchain_config_repo") for repo in REMOTE_JDK_REPOS]

# Dev dependencies
bazel_dep(name = "rules_pkg", version = "0.5.1", dev_dependency = True)

0 comments on commit b765185

Please sign in to comment.