Skip to content

Commit

Permalink
Speed up CI runs (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored Feb 25, 2024
1 parent ddb9c36 commit a207477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
key: ${{ matrix.arch }}
- name: Start Docker (required for cross-rs)
run: sudo systemctl start docker
- name: Cross-Run Tests using QEMU
run: cross test --target ${{ matrix.arch }} --verbose -v
run: cross test --target ${{ matrix.arch }}

test_avif_decoding:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion tests/truncate_images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn truncate_images(decoder: &str) {
let max_length = 1000;
let mut buf = Vec::with_capacity(max_length);
fin.take(max_length as u64).read_to_end(&mut buf).unwrap();
for i in 0..buf.len() {
for i in (0..buf.len()).step_by(37) {
image::load_from_memory(&buf[..i + 1]).ok();
}
})
Expand Down

0 comments on commit a207477

Please sign in to comment.