generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address reviews, add workflow to exercise code
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
http_archive( | ||
name = "rules_foreign_cc", | ||
sha256 = "a2e6fb56e649c1ee79703e99aa0c9d13c6cc53c8d7a0cbb8797ab2888bbc99a3", | ||
strip_prefix = "rules_foreign_cc-0.12.0", | ||
url = "https://github.com/bazelbuild/rules_foreign_cc/releases/download/0.12.0/rules_foreign_cc-0.12.0.tar.gz", | ||
) | ||
|
||
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") | ||
|
||
# This sets up some common toolchains for building targets. For more details, please see | ||
# https://bazelbuild.github.io/rules_foreign_cc/0.12.0/flatten.html#rules_foreign_cc_dependencies | ||
rules_foreign_cc_dependencies() | ||
|
||
load("@bazel_features//:deps.bzl", "bazel_features_deps") | ||
|
||
bazel_features_deps() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_binary") | ||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") | ||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "make") | ||
cmake( | ||
name = "kube_c", | ||
build_args = [ | ||
"--verbose", | ||
"--", # <- Pass remaining options to the native tool. | ||
"-j 1", | ||
], | ||
lib_source = "//:kubernetes", | ||
out_shared_libs = ["libkubernetes.so"], | ||
) |