mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-26 00:34:12 +00:00
ad610b57f5
* Move top-level crates to crates/ directory * Update docs * Update test.sh * Update docs.sh * Update clippy.sh
25 lines
488 B
Bash
Executable File
25 lines
488 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/spirv-tools-sys
|
|
doc crates/spirv-tools
|
|
doc crates/rustc_codegen_spirv
|
|
doc crates/spirv-builder
|