diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-23 04:07:52 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-23 04:07:52 +0800 |
| commit | dc4ef0aec107d69bd8f3511e062f50f7fef238f7 (patch) | |
| tree | b7dba7414bb29efd640bc35de627385d60b291c6 /deploy.sh | |
| parent | 520d37f438d7e13e7b452d34b23fef68550a036b (diff) | |
Add build progress messages and quiet flags
Diffstat (limited to 'deploy.sh')
| -rwxr-xr-x | deploy.sh | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -13,14 +13,16 @@ if [ ! -d "$coreLibPath" ]; then fi # Test core library -cargo test --manifest-path ../VersionControl/Cargo.toml --workspace +echo "Testing Core Library \"../VersionControl/Cargo.toml\"" +cargo test --manifest-path ../VersionControl/Cargo.toml --workspace --quiet if [ $? -ne 0 ]; then echo "Core library tests failed. Aborting build." exit 1 fi # Test workspace -cargo test --workspace +echo "Testing Command Line \"./Cargo.toml\"" +cargo test --workspace --quiet if [ $? -ne 0 ]; then echo "Workspace tests failed. Aborting build." exit 1 @@ -43,10 +45,13 @@ if [ -n "$core_git_status" ]; then fi # Build -if FORCE_BUILD=$(date +%s) cargo build --workspace --release; then +echo "Building \"./Cargo.toml\"" +if FORCE_BUILD=$(date +%s) cargo build --workspace --release --quiet; then + # Build succeeded # Export - if cargo run --manifest-path tools/build_helper/Cargo.toml --bin exporter release; then + echo "Deploying \"./.cargo/config.toml\"" + if cargo run --manifest-path tools/build_helper/Cargo.toml --quiet --bin exporter release; then # Copy compile_info.rs.template to compile_info.rs after successful export - cp -f templates/compile_info.rs src/data/compile_info.rs + cp -f templates/compile_info.rs.template src/data/compile_info.rs fi fi |
