From 4f7565c2fd9e3907a9daedfc1a3bc823dd1313da Mon Sep 17 00:00:00 2001 From: "Mr.Nineteen" Date: Fri, 22 Sep 2023 13:20:16 +0800 Subject: [PATCH] add bazel build script --- .bazeliskrc | 1 + bazel_build.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 .bazeliskrc create mode 100755 bazel_build.sh diff --git a/.bazeliskrc b/.bazeliskrc new file mode 100644 index 000000000..8676a7e5c --- /dev/null +++ b/.bazeliskrc @@ -0,0 +1 @@ +USE_BAZEL_VERSION=5.3.1 diff --git a/bazel_build.sh b/bazel_build.sh new file mode 100755 index 000000000..06a0be48e --- /dev/null +++ b/bazel_build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Usage : `./bazel_build.sh` or `bash bazel_build.sh` +set -e +export $(cat .bazeliskrc | xargs) + +bazel build --config=cuda //...