-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (29 loc) · 1.04 KB
/
macos_lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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