Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Impound Bazel rules for the CUE language's "cue" tool defined in the
"seh/rules_cue" GitHub repository.
  • Loading branch information
seh committed Feb 9, 2023
1 parent aa53874 commit 4eabd00
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/rules_cue/0.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module(
name = "rules_cue",
version = "0.2.0",
)

bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "platforms", version = "0.0.6")
bazel_dep(name = "rules_go", version = "0.38.1")

cue = use_extension("//cue:extensions.bzl", "cue")
use_repo(
cue,
"cue_tool_toolchains",
)

register_toolchains("@cue_tool_toolchains//:all")

bazel_dep(name = "gazelle", version = "0.28.0")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
22 changes: 22 additions & 0 deletions modules/rules_cue/0.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
matrix: &matrix
platform:
- centos7
- debian10
- macos
- ubuntu2004
- windows
tasks:
verify_targets:
name: Verify that all tests succeed
platform: ${{ platform }}
test_targets:
- '@rules_cue//test:all'
bcr_test_module:
module_path: examples/bzlmod
matrix: *matrix
tasks:
run_test_module:
name: Run test module
platform: ${{ platform }}
build_targets:
- //root
5 changes: 5 additions & 0 deletions modules/rules_cue/0.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-awLJCSrPJ1CW+qXknMMhfXcVti0hgqhTS7YT4Q5dk68=",
"strip_prefix": "rules_cue-0.2.0",
"url": "https://github.com/seh/rules_cue/archive/refs/tags/v0.2.0.tar.gz"
}
17 changes: 17 additions & 0 deletions modules/rules_cue/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/seh/rules_cue",
"maintainers": [
{
"email": "[email protected]",
"github": "seh",
"name": "Steven E. Harris"
}
],
"repository": [
"github:seh/rules_cue"
],
"versions": [
"0.2.0"
],
"yanked_versions": {}
}

0 comments on commit 4eabd00

Please sign in to comment.