Skip to content

Commit

Permalink
Add linting on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzywilczek committed Oct 14, 2024
1 parent 0773012 commit 3667778
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 10 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/macos_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: macos lint
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
check:
runs-on: macos-14
steps:
- name: 🛠 Install system dependencies
run: brew install ffmpeg

- name: 🔧 Install the rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: 📥 Checkout repo
uses: actions/checkout@v4

- name: 📁 Rust cache
uses: Swatinem/rust-cache@v2

- name: 🪢 Generate Chromium Embedded Framework bindings
run: cargo build --package compositor_chromium

- name: 📖 Check formatting
run: cargo fmt --all --check

- name: 📎 Run clippy
run: cargo clippy --workspace --all-targets -- -D clippy::todo -D warnings

16 changes: 7 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ thiserror = "1.0.40"
crossbeam-channel = "0.5.8"
reqwest = { version = "0.12.3", features = ["blocking", "json"] }
signal-hook = "0.3.15"
ffmpeg-next = "7.0.0"
ffmpeg-next = "7.1.0"
anyhow = "1.0.71"
image = { version = "0.24.7", features = ["jpeg", "png"] }
rtp = "0.9.0"
Expand Down

0 comments on commit 3667778

Please sign in to comment.