mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-25 16:41:00 +00:00
33 lines
790 B
YAML
33 lines
790 B
YAML
name: Rust
|
|
|
|
# Trigger the workflow on push or pull request
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
rustfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install latest nightly
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
- run: rustup component add rustfmt
|
|
- uses: actions-rs/cargo@v2
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install latest nightly
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- run: rustup component add clippy
|
|
- uses: actions-rs/cargo@v2
|
|
with:
|
|
command: clippy
|
|
# args: -- -D warnings
|