Skip to content

Commit

Permalink
✨ Release 20220822.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neqochan committed Aug 22, 2022
1 parent ea0987e commit 3cb879b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_ll",
version = "20220723.1",
version = "20220822.0",
execution_platforms_to_register = [
"@rules_ll//ll:ll_linux_exec_platform",
],
Expand Down
11 changes: 5 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
An Upstream LLVM/Clang Toolchain for Bazel
------------------------------------------

This repository exposes ``ll_library`` and ``ll_binary`` rules to build C and
C++ code with a Clang/LLVM based toolchain built from upstream.
This repository exposes ``ll_library`` and ``ll_binary`` rules to build modern
C++ with a Clang/LLVM based toolchain built from upstream.

**Features**

Expand All @@ -12,11 +12,10 @@ C++ code with a Clang/LLVM based toolchain built from upstream.
and ``clang-tidy``.
- Parallel ``clang-tidy`` invocations via an ``ll_compilation_database``
target.
- Native support for ``AddressSanitizer``, ``LeakSanitizer``,
``MemorySanitizer``, ``UndefinedBehaviorSanitizer``, and ``ThreadSanitizer``
via target attributes.
- Native support for sanitizers via target attributes.
- Heterogeneous programming for Nvidia GPUs using HIP and CUDA, including fully
automated setup of required libraries, toolkits etc.
- Precompiled modules for C++20.

**Links**

Expand Down Expand Up @@ -74,7 +73,7 @@ workspace:
touch WORKSPACE.bazel .bazelrc
echo cbb4eb1973a7fb49d15ced3fea6498f714f3ab0c > .bazelversion
echo 'bazel_dep(name="rules_ll", version="20220723.1")' > MODULE.bazel
echo 'bazel_dep(name="rules_ll", version="20220822.0")' > MODULE.bazel
Copy the following lines into the just created ``.bazelrc`` file:

Expand Down
39 changes: 39 additions & 0 deletions create_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
!/bin/bash
# Usage:
#
# ./create_release.sh <tag>
#
# This script creates a directory for a module registry. The output is a
# directory named <tag>, containing the MODULE.bazel file and a source.json file
# as required for bazel registries. This directory can then be copied to the
# modules directory of a bazel registry. The registries' metadata.json still
# needs to be modified manually to make the tagged version available.

TAG="$1";

RELEASE_DIR=$TAG;

ARTIFACT=$(printf "$TAG.zip");

ARTIFACT_URL=$(
printf 'https://github.com/eomii/rules_ll/archive/refs/tags/%s.zip' $TAG
);

STRIP_PREFIX=$(printf "rules_ll-%s" $TAG);

mkdir $RELEASE_DIR;

wget $ARTIFACT_URL;

unzip -p $ARTIFACT $STRIP_PREFIX/MODULE.bazel > $RELEASE_DIR/MODULE.bazel;

SHA256=$(cat $ARTIFACT | openssl sha256 -binary | openssl base64 -A);

printf '{
"integrity": "sha256-%s",
"strip_prefix": "%s",
"url": "%s"
}
' $SHA256 $STRIP_PREFIX $ARTIFACT_URL > $RELEASE_DIR/source.json;

rm $ARTIFACT;

0 comments on commit 3cb879b

Please sign in to comment.