rust-gpu/.github/workflows/docs.sh
2020-10-30 14:54:09 +01:00

25 lines
453 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [[ -z "${CI}" ]]; then
FEAT="use-compiled-tools"
else
FEAT="use-installed-tools"
fi
function doc() {
echo ::group::"$1"
cargo doc \
--manifest-path "$1/Cargo.toml" \
--no-default-features \
--features "$FEAT"
echo ::endgroup::
}
# Core crates only!
cargo doc --manifest-path "spirv-std/Cargo.toml"
doc spirv-tools-sys
doc spirv-tools
doc rustc_codegen_spirv
doc spirv-builder