From 3b496e45373295158e50aa9316c37e5c74a97c06 Mon Sep 17 00:00:00 2001 From: tongke <124763920+tongke6@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:50:00 +0800 Subject: [PATCH] Automate publishing heu to bazel-registry (#163) * Automate publishing heu to bazel-registry * Bump to 0.6.0.dev20250123 * ignore .bcr for license checker --- .bcr/metadata.template.json | 7 +++++++ .bcr/presubmit.yml | 16 ++++++++++++++++ .bcr/source.template.json | 5 +++++ .licenserc.yaml | 1 + MODULE.bazel | 2 +- 5 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000..f0c3ecd --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,7 @@ +{ + "homepage": "https://github.com/secretflow/heu", + "maintainers": [], + "repository": ["github:secretflow/heu"], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000..9c2f43f --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@heu//heu/..." diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000..4f14819 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz" +} diff --git a/.licenserc.yaml b/.licenserc.yaml index 2c7d668..98602f6 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -45,6 +45,7 @@ header: # <1> - "MODULE.bazel.lock" - "third_party/bazel_rust/**/*.bazel" # Generated - "third_party/bazel_rust/**/*.bzl" # Generated + - ".bcr" comment: never # <9> diff --git a/MODULE.bazel b/MODULE.bazel index 1d993c3..3956dc3 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -21,7 +21,7 @@ module( name = "heu", - version = "0.5.1", + version = "0.6.0.dev20250123", compatibility_level = 1, )