diff --git a/.scripts/cargo-check.ps1 b/.scripts/cargo-check.ps1 new file mode 100644 index 000000000..47b71f546 --- /dev/null +++ b/.scripts/cargo-check.ps1 @@ -0,0 +1,14 @@ +Write-Output "Checking tauri crates" + + +$commands=@("clippy","test") +$features=@("no-server","embedded-server") +foreach ($command in $commands) { + foreach ($feature in $features) { + Write-Output "[$command][$feature] checking tauri" + cargo $command --manifest-path tauri/Cargo.toml --all-targets --features "$feature,cli,all-api" + } + + Write-Output "[$command] checking other crates" + cargo $command --workspace --exclude tauri --all-targets --all-features +} diff --git a/.scripts/cargo-check.sh b/.scripts/cargo-check.sh new file mode 100644 index 000000000..95e4c2c10 --- /dev/null +++ b/.scripts/cargo-check.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh +set -e + +echo "Checking tauri crates" + +for command in "clippy" "test" +do + for feature in "no-server" "embedded-server" + do + echo "[$command][$feature] checking tauri" + cargo "$command" --manifest-path tauri/Cargo.toml --all-targets --features "$feature,cli,all-api" + done + + echo "[$command] checking other crates" + cargo "$command" --workspace --exclude tauri --all-targets --all-features +done