From 44dfb51fad75a8a2f1044a4fe221aba70571b86f Mon Sep 17 00:00:00 2001 From: Kevin Mittman <kmittman@nvidia.com> Date: Thu, 16 Sep 2021 14:54:48 -0700 Subject: [PATCH] Add README Signed-off-by: Kevin Mittman <kmittman@nvidia.com> --- README.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..578ea21 --- /dev/null +++ b/README.md @@ -0,0 +1,60 @@ +# build-system-archive-import-examples + +[](https://opensource.org/licenses/MIT-license) +[](https://developercertificate.org) + + +## Overview + +Examples for importing precompiled binary `tarball` and `zip` archives into various CI/CD build and packaging systems + + +## Redistrib JSON + +Sample script for parsing `redistrib_${label}.json` manifests ([JSON schema](https://developer.download.nvidia.com/compute/redist/redistrib-v2.schema.json)). + + - Downloads each archive + - Validates SHA256 checksums + - Extracts archives + - Flattens into a collapsed directory structure + +### Usage + +```shell +usage: parse_redist.py (-u URL | [-l LABEL] [-p PRODUCT]) [-o OUTPUT] + option filters: [--component COMPONENT] ([--os OS] [--arch ARCH]) + option toggles: [--no-download] [--no-checksum] [--no-extract] [--no-flatten] +``` + +### Example + +```shell +python3 ./parse_redist.py --product cuda --label 11.4.2 +``` + +or equivalent + +```shell +python3 ./parse_redist.py --url https://developer.download.nvidia.com/compute/cuda/redist/redistrib_11.4.2.json +``` + + +## CMake + +### FindCUDAToolkit + +See example [cmake/1_FindCUDAToolkit/](cmake/1_FindCUDAToolkit/) + +### ExternalProject + +See example [cmake/2_ExternalProject/](cmake/2_ExternalProject/) + +## Bazel + +### pkg_tar + +See example [bazel/1_pkg_tar/](bazel/1_pkg_tar/) + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) -- GitLab