From 1d9c07817e3f2e575149cbd4e112710f9875df65 Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:37:51 +0800 Subject: [PATCH 1/3] Automate publishing heu to bazel-registry --- .bcr/metadata.template.json | 7 +++++++ .bcr/presubmit.yml | 16 ++++++++++++++++ .bcr/source.template.json | 5 +++++ 3 files changed, 28 insertions(+) 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" +} From c57e062484cc98f43de2574de632e54cd0f3eb46 Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:39:31 +0800 Subject: [PATCH 2/3] Bump to 0.6.0.dev20250123 --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ) From e8f2865e5192de805b5c501e7fa5f9aa5337d45b Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:42:16 +0800 Subject: [PATCH 3/3] ignore .bcr for license checker --- .licenserc.yaml | 1 + 1 file changed, 1 insertion(+) 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>