Fixed build from failing
This commit is contained in:
parent
99f5eb22d6
commit
bdf6e57f42
|
@ -6,8 +6,8 @@ on:
|
|||
- release
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: release ${{ matrix.target }}
|
||||
push:
|
||||
name: building
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
|
@ -113,7 +113,7 @@ fn execute_task(task: &Task) -> Result<JoinHandle<bool>, String> {
|
|||
.arg(command)
|
||||
.current_dir(directory)
|
||||
.status()
|
||||
.map_err(|err| err.to_string());
|
||||
.expect("Failed to execute command");
|
||||
status.success()
|
||||
}
|
||||
});
|
||||
|
|
|
@ -20,7 +20,7 @@ pub fn write_file_content(file_path: &PathBuf, content: &str) -> Result<(), Stri
|
|||
pub fn read_json_file<T: for<'a> Deserialize<'a>>(file_path: &PathBuf) -> Result<T, String> {
|
||||
let content = read_file_content(file_path.clone())?;
|
||||
|
||||
let file_content: T = serde_json::from_str::<T>(&content).map_err(|err| err.to_string());
|
||||
let file_content: T = serde_json::from_str::<T>(&content).map_err(|err| err.to_string())?;
|
||||
|
||||
Ok(file_content)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue