From 09d64357180e0797b8dcdcaf14b4d3a634effc29 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 21 Mar 2026 21:33:47 +0800 Subject: Keep compile_info.rs in git and reorder deploy checks Remove compile_info.rs from .gitignore to keep it in version control, preventing test failures when the template hasn't been processed yet. Also reorder deployment script checks to verify git status before running tests, ensuring a clean state before testing begins. --- src/data/compile_info.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/data/compile_info.rs (limited to 'src/data/compile_info.rs') diff --git a/src/data/compile_info.rs b/src/data/compile_info.rs new file mode 100644 index 0000000..d06f9b1 --- /dev/null +++ b/src/data/compile_info.rs @@ -0,0 +1,25 @@ +#[derive(serde::Serialize)] +pub struct CompileInfo { + pub date: String, + pub target: String, + pub platform: String, + pub toolchain: String, + + pub cli_version: String, + pub build_branch: String, + pub build_commit: String, +} + +impl Default for CompileInfo { + fn default() -> Self { + Self { + date: "<<>>".to_string(), + target: "<<>>".to_string(), + platform: "<<>>".to_string(), + toolchain: "<<>>".to_string(), + cli_version: "<<>>".to_string(), + build_branch: "<<>>".to_string(), + build_commit: "<<>>".to_string(), + } + } +} -- cgit