mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +00:00
0f3948dc27
* Nuke spirv-tools * Swap to use published spirv-tools crate
42 lines
835 B
Bash
Executable File
42 lines
835 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 clippy() {
|
|
echo ::group::"$1"
|
|
cargo clippy \
|
|
--manifest-path "$1/Cargo.toml" \
|
|
--no-default-features \
|
|
--features "$FEAT" \
|
|
--all-targets \
|
|
-- -D warnings
|
|
echo ::endgroup::
|
|
}
|
|
|
|
function clippy_no_features() {
|
|
echo ::group::"$1"
|
|
cargo clippy \
|
|
--manifest-path "$1/Cargo.toml" \
|
|
--all-targets \
|
|
-- -D warnings
|
|
echo ::endgroup::
|
|
}
|
|
|
|
# Core crates
|
|
clippy crates/rustc_codegen_spirv
|
|
clippy crates/spirv-builder
|
|
|
|
# Examples
|
|
|
|
clippy examples/runners/ash
|
|
clippy examples/runners/wgpu
|
|
|
|
clippy_no_features examples/runners/cpu
|
|
clippy_no_features examples/shaders/sky-shader
|
|
clippy_no_features examples/shaders/simplest-shader
|