Skip to content

Commit

Permalink
Merge pull request #10 from awxkee/dev
Browse files Browse the repository at this point in the history
Fuzzing, AR30, common improvements
  • Loading branch information
awxkee authored Dec 10, 2024
2 parents edf5bb6 + 5f61298 commit c34859b
Show file tree
Hide file tree
Showing 100 changed files with 4,391 additions and 1,724 deletions.
63 changes: 57 additions & 6 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ concurrency:
on:
push:
branches:
- '*'
- 'master'
- 'dev'
- '!ci_test_*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
- '!ci_test_*'
- 'master'

jobs:
build:
Expand All @@ -29,9 +29,60 @@ jobs:
- run: RUSTFLAGS="-C target-feature=+sse4.1" cargo build --target i686-unknown-linux-gnu
- run: cargo build --target powerpc-unknown-linux-gnu
- run: cargo build --target riscv64gc-unknown-linux-gnu
- run: cargo clippy
- run: cargo clippy --target aarch64-unknown-linux-gnu
- run: RUSTFLAGS="-C target-feature=+sse4.1" cargo build --target x86_64-unknown-linux-gnu
- run: RUSTFLAGS="-C target-feature=+sse4.1,+f16c" cargo build --features half --target x86_64-unknown-linux-gnu
- run: RUSTFLAGS="-C target-feature=+avx2,+f16c" cargo build --features half --target x86_64-unknown-linux-gnu
- run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target x86_64-unknown-linux-gnu
- run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target x86_64-unknown-linux-gnu

clippy:
name: Clippy
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy

fuzz_rgba_8bit:
name: Fuzzing 8bit
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install cargo-fuzz
- run: cargo fuzz run resize_rgba -- -max_total_time=30
- run: cargo fuzz run resize_rgb -- -max_total_time=30
- run: cargo fuzz run resize_plane -- -max_total_time=30

fuzz_rgba_high_bit:
name: Fuzzing High bit-depth
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install cargo-fuzz
- run: cargo fuzz run resize_rgba_u16 -- -max_total_time=30
- run: cargo fuzz run resize_rgb_u16 -- -max_total_time=30
- run: cargo fuzz run resize_plane_u16 -- -max_total_time=30

fuzz_rgba_f32:
name: Fuzzing floating point
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo install cargo-fuzz
- run: cargo fuzz run resize_rgba_f32 -- -max_total_time=30
- run: cargo fuzz run resize_rgb_f32 -- -max_total_time=30
- run: cargo fuzz run resize_plane_f32 -- -max_total_time=30
26 changes: 26 additions & 0 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: no-response

on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch:

jobs:
noResponse:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ github.token }}
days-before-stale: -1
days-before-close: 14
only-labels: 'waiting for author'
stale-issue-label: 'waiting for author'
stale-pr-label: 'waiting for author'
remove-stale-when-updated: true
ignore-updates: false
close-issue-message: This issue has been automatically closed due to inactivity. We requested additional information but have not received a response from the original author. Without the requested details, we cannot proceed. If you have or find the information needed, please comment so we can reopen the issue.
close-pr-message: This pull request has been automatically closed due to inactivity. We requested additional information but have not received a response from the original author. Without the requested details, we cannot proceed. If you have the needed information or updates, please reopen the PR or comment so we can continue the review.
Loading

0 comments on commit c34859b

Please sign in to comment.