feat: publish HoloLake model-native living system source

This commit is contained in:
冰朔 2026-08-03 10:04:41 +08:00
commit c395dd3a99
2467 changed files with 615073 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail
start_time=$(date +%s)
log_rust() {
printf '[sidecar-rust +%ss] %s\n' "$(($(date +%s) - start_time))" "$*"
}
mkdir -p "$HOME/Documents"
# shellcheck disable=SC1091
. "$HOME/.cargo/env"
export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}"
log_rust 'clippy started'
cargo clippy --manifest-path=src-tauri/Cargo.toml -- -D warnings
log_rust 'clippy passed'
log_rust 'rustfmt started'
cargo fmt --manifest-path=src-tauri/Cargo.toml -- --check
log_rust 'rustfmt passed'
log_rust 'coverage started'
cargo llvm-cov \
--manifest-path src-tauri/Cargo.toml \
--no-clean \
--ignore-filename-regex "lib\\.rs|main\\.rs|menu\\.rs" \
--fail-under-lines 85 \
-- --test-threads=1
log_rust "completed in $(($(date +%s) - start_time))s"