Fixed build from failing
Rust Build / building (tar.gz tar.xz tar.zst, x86_64-unknown-linux-musl) (push) Failing after 5m44s Details
Rust Build / building (zip, x86_64-apple-darwin) (push) Failing after 3m26s Details
Rust Build / building (zip, x86_64-pc-windows-gnu) (push) Successful in 9m32s Details

This commit is contained in:
Ian Wijma 2024-04-06 21:02:31 +11:00
parent 99f5eb22d6
commit bdf6e57f42
3 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ on:
- release
jobs:
release:
name: release ${{ matrix.target }}
push:
name: building
runs-on: ubuntu-latest
strategy:
fail-fast: false

View File

@ -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()
}
});

View File

@ -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)
}