x264-rs/.github/workflows/ci.yml
jiangcuo e72f12c06b
Some checks failed
CI / Check (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
first commit
2026-07-06 17:41:51 +08:00

72 lines
1.5 KiB
YAML

name: CI
on:
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
Check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install x264
run: sudo apt-get install libx264-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install x264
run: sudo apt-get install libx264-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
Lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install x264
run: sudo apt-get install libx264-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
- name: Run lints
uses: actions-rs/cargo@v1
with:
command: clippy