mirror of
https://github.com/bazelbuild/rules_cc
synced 2024-11-28 21:34:00 +00:00
f871759081
PiperOrigin-RevId: 272444545 Change-Id: I8d582773c5ef124ecafe77a353434887f1abc1aa
31 lines
739 B
Python
31 lines
739 B
Python
package(
|
|
default_visibility = ["//visibility:private"],
|
|
)
|
|
|
|
load("@rules_cc//cc:version.bzl", "version")
|
|
load("@rules_pkg//:pkg.bzl", "pkg_tar")
|
|
load("@rules_pkg//releasing:defs.bzl", "print_rel_notes")
|
|
|
|
# Build the artifact to put on the github release page.
|
|
pkg_tar(
|
|
name = "rules_cc-%s" % version,
|
|
srcs = [
|
|
"//:distribution",
|
|
"//cc:distribution",
|
|
],
|
|
extension = "tar.gz",
|
|
# It is all source code, so make it read-only.
|
|
mode = "0444",
|
|
# Make it owned by root so it does not have the uid of the CI robot.
|
|
owner = "0.0",
|
|
package_dir = ".",
|
|
strip_prefix = ".",
|
|
)
|
|
|
|
print_rel_notes(
|
|
name = "relnotes",
|
|
outs = ["relnotes.txt"],
|
|
repo = "rules_cc",
|
|
version = version,
|
|
)
|