Skip to content

Commit

Permalink
Merge branch 'secretflow:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xbw886 authored Feb 7, 2025
2 parents ed2e915 + a493712 commit cb3d241
Show file tree
Hide file tree
Showing 27 changed files with 115 additions and 1,241 deletions.
7 changes: 7 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"homepage": "https://github.com/secretflow/yacl",
"maintainers": [],
"repository": ["github:secretflow/yacl"],
"versions": [],
"yanked_versions": {}
}
16 changes: 16 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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:
- "@yacl//yacl/..."
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz"
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ external

#brpc
rpc_data

.clwb
cmake-build-debug-remote
26 changes: 8 additions & 18 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,30 @@

module(
name = "yacl",
version = "0.4.5b10-nightly-20250110",
compatibility_level = 1,
)

# --registry=https://bcr.bazel.build
bazel_dep(name = "protobuf", version = "27.3")
bazel_dep(name = "rules_proto", version = "4.0.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "apple_support", version = "1.17.1")
bazel_dep(name = "rules_cc", version = "0.0.12")
single_version_override(
module_name = "rules_cc",
version = "0.0.12",
)

bazel_dep(name = "abseil-cpp", version = "20230802.1")
bazel_dep(name = "rules_cc", version = "0.0.13")
bazel_dep(name = "abseil-cpp", version = "20240722.0")
bazel_dep(name = "gflags", version = "2.2.2")
bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
bazel_dep(name = "msgpack-c", version = "6.1.0")
bazel_dep(name = "blake3", version = "1.5.4")
bazel_dep(name = "fmt", version = "11.0.2")
bazel_dep(name = "spdlog", version = "1.14.1")
bazel_dep(name = "rules_python", version = "0.16.2")
bazel_dep(name = "bazel_features", version = "1.20.0")
bazel_dep(name = "bazel_features", version = "1.24.0")
bazel_dep(name = "rules_foreign_cc", version = "0.12.0")
bazel_dep(name = "platforms", version = "0.0.8")

# self-hosted registry
bazel_dep(name = "brpc", version = "1.11.0-20241119-72ce354")
bazel_dep(name = "brpc", version = "1.11.0-20241212-282bc90")
bazel_dep(name = "cpu_features", version = "0.9.0")
bazel_dep(name = "simplest-ot", version = "0.0.1")
bazel_dep(name = "libtommath", version = "0.0.0-20240407-42b3fb0")
Expand All @@ -59,27 +56,20 @@ bazel_dep(name = "hash_drbg", version = "0.0.0-20230516-2411fa9")
bazel_dep(name = "org_interconnection", version = "0.0.1")
bazel_dep(name = "lib25519", version = "20240321")
bazel_dep(name = "mcl", version = "1.99")
bazel_dep(name = "protobuf", version = "25.5")
single_version_override(
module_name = "protobuf",
version = "25.5",
)

# --registry=https://baidu.github.io/babylon/registry
bazel_dep(name = "leveldb", version = "1.23")
bazel_dep(name = "openssl", version = "3.3.2.bcr.1")

new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")

new_local_repository(
name = "macos_omp_x64",
build_file = "@//bazel:local_openmp_macos.BUILD",
build_file = "@yacl//bazel:local_openmp_macos.BUILD",
path = "/usr/local/opt/libomp",
)

new_local_repository(
name = "macos_omp_arm64",
build_file = "@//bazel:local_openmp_macos.BUILD",
build_file = "@yacl//bazel:local_openmp_macos.BUILD",
path = "/opt/homebrew/opt/libomp/",
)

Expand Down
70 changes: 0 additions & 70 deletions bazel/FourQlib.BUILD

This file was deleted.

29 changes: 0 additions & 29 deletions bazel/hash_drbg.BUILD

This file was deleted.

Loading

0 comments on commit cb3d241

Please sign in to comment.