rust-gpu/.github/workflows/docs.sh
Jake Shadle 0f3948dc27
Move out spirv-tools to separate repo (#237)
* Nuke spirv-tools

* Swap to use published spirv-tools crate
2020-11-13 09:57:12 +01:00

23 lines
438 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 "crates/spirv-std/Cargo.toml"
doc crates/rustc_codegen_spirv
doc crates/spirv-builder