Fixed build from failing
This commit is contained in:
parent
99f5eb22d6
commit
bdf6e57f42
|
@ -6,8 +6,8 @@ on:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
push:
|
||||||
name: release ${{ matrix.target }}
|
name: building
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -113,7 +113,7 @@ fn execute_task(task: &Task) -> Result<JoinHandle<bool>, String> {
|
||||||
.arg(command)
|
.arg(command)
|
||||||
.current_dir(directory)
|
.current_dir(directory)
|
||||||
.status()
|
.status()
|
||||||
.map_err(|err| err.to_string());
|
.expect("Failed to execute command");
|
||||||
status.success()
|
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> {
|
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 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)
|
Ok(file_content)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue