Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Nov 9, 2024
1 parent 4446ad8 commit 5835d9f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: ["*"]

env:
CARGO_TERM_COLOR: always

jobs:
all:
name: All
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -qq --no-install-recommends \
ffmpeg \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libprotobuf-dev \
libswscale-dev \
protobuf-compiler
- name: Check formatting
run: cargo fmt --all -- --check

- name: Build
run: cargo build --verbose

- name: Run clippy
run: cargo clippy -- -D warnings

- name: Run tests
run: cargo test --verbose

0 comments on commit 5835d9f

Please sign in to comment.