mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-04 02:41:01 +08:00
fix: if building fails, still update the web page
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+11
-1
@@ -52,10 +52,20 @@ fn fallible_main() -> Result<(), NativeError> {
|
||||
info!("radicle-native-ci starts");
|
||||
|
||||
let config = Config::load_via_env()?;
|
||||
|
||||
let result = fallible_main_inner(&config);
|
||||
report::build_report(&config.state)?;
|
||||
result
|
||||
}
|
||||
|
||||
fn fallible_main_inner(config: &Config) -> Result<(), NativeError> {
|
||||
pretty_env_logger::init_custom_env("RADICLE_NATIVE_CI_LOG");
|
||||
info!("radicle-native-ci starts");
|
||||
|
||||
let mut logfile = config.open_log()?;
|
||||
logfile.write_str("radicle-native-ci starts\n")?;
|
||||
|
||||
let (run_id, run_dir) = mkdir_run(&config)?;
|
||||
let (run_id, run_dir) = mkdir_run(config)?;
|
||||
let run_id = RunId::from(format!("{}", run_id).as_str());
|
||||
logfile.write(format!("run directory {}\n", run_dir.display()))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user