Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
jobs:
linux_x86_64:
machine:
image: ubuntu-2204:current
image: ubuntu-2404:current
resource_class: medium
steps:
- checkout
Expand All @@ -32,7 +32,7 @@ jobs:

linux_aarch64:
machine:
image: ubuntu-2204:current
image: ubuntu-2404:current
resource_class: arm.medium
steps:
- checkout
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ jobs:
run: cargo build --release
- name: Run tests
run: cargo test --release

build-demo:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cd ./demo && cargo build --release
2 changes: 1 addition & 1 deletion src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl Archive<Cursor<Vec<u8>>> {
pub fn from_path(path: &str) -> Result<Archive<Cursor<Vec<u8>>>, OzzError> {
match crate::nodejs::read_file(path) {
Ok(buf) => Archive::from_vec(buf),
Err(err) => Err(OzzError::Custom(Box::new(err.as_string().unwrap_or("".into())))),
Err(_) => Err(OzzError::Unexcepted),
}
}
}
Expand Down