Deploy the Julia runtime to the scouting server
This patch creates a .deb package to deploy Julia and the
DriverRank.jl dependencies to the scouting server.
This should let the deployed scouting server run the script without
too much trouble.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I419808b1567d5d56f2052864843b7f3b53223d31
diff --git a/third_party/julia/julia.BUILD b/third_party/julia/julia.BUILD
new file mode 100644
index 0000000..94988ca
--- /dev/null
+++ b/third_party/julia/julia.BUILD
@@ -0,0 +1,18 @@
+load("@rules_pkg//:pkg.bzl", "pkg_tar")
+load(":files.bzl", "LIB_SYMLINKS", "LIBS")
+
+pkg_tar(
+ name = "runtime",
+ srcs = LIBS + [
+ "bin/julia",
+ ] + glob([
+ "share/julia/**/*.jl",
+ "share/julia/**/*.toml",
+ "include/julia/**/*",
+ ], exclude = [
+ "**/test/**",
+ ]),
+ symlinks = LIB_SYMLINKS,
+ strip_prefix = "external/julia",
+ visibility = ["//visibility:public"],
+)