Merge pull request #50 from aiuto/bzlmod

Add MODULE.bzl
This commit is contained in:
aiuto 2022-10-20 16:47:18 -04:00 committed by GitHub
commit d9296d956d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 12 deletions

View File

@ -1,14 +1,46 @@
---
#
# Bazel releases
#
lts: &lts
bazel: latest
rolling: &rolling
bazel: rolling
targets: &targets
build_targets:
- "//..."
tasks:
ubuntu1804:
build_targets:
- "//..."
ubuntu2004:
build_targets:
- "//..."
macos:
build_targets:
- "//..."
windows:
build_targets:
- "//..."
ubuntu_lts:
name: ubuntu_lts
platform: ubuntu2004
<<: *lts
<<: *targets
ubuntu_rolling:
name: ubuntu_rolling
platform: ubuntu2004
<<: *rolling
<<: *targets
macos_lts:
name: macos_lts
platform: macos
<<: *lts
<<: *targets
windows_lts:
name: windows_lts
platform: windows
<<: *lts
<<: *targets
check_bzlmod:
name: check_bzlmod
# No need to check bzlmod on every platform. This repository only holds
# constants and has no per-platform behavior.
platform: ubuntu2004
<<: *rolling
<<: *targets
build_flags:
- "--enable_bzlmod"

5
MODULE.bazel Normal file
View File

@ -0,0 +1,5 @@
module(
name = "platforms",
version = "0.0.6", # keep in sync with version.bzl
compatibility_level = 1,
)