Only use PNG images #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.rs' | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-clippy.yml | |
- 'rust-toolchain' | |
- 'rust-toolchain.toml' | |
pull_request: | |
paths: | |
- '**.rs' | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-clippy.yml | |
- 'rust-toolchain' | |
- 'rust-toolchain.toml' | |
name: cargo clippy | |
jobs: | |
cargoclippy: | |
name: cargo clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Install ffmpeg | |
run: | | |
sudo apt update | |
sudo apt install \ | |
ffmpeg \ | |
libavformat-dev \ | |
libavutil-dev \ | |
libclang-dev \ | |
libswscale-dev \ | |
--no-install-recommends | |
- name: Check workflow permissions | |
id: check_permissions | |
uses: scherermichael-oss/[email protected] | |
with: | |
required-permission: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- if: steps.check_permissions.outputs.has-permission | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all | |
- name: Run clippy manually without annotations | |
if: ${{ !steps.check_permissions.outputs.has-permission }} | |
run: cargo clippy --workspace --examples --tests --benches --all-features -- -D warnings |