1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-09-27 14:10:05 +00:00
hls_m3u8/.github/workflows/rust.yml

34 lines
790 B
YAML
Raw Normal View History

2019-09-21 11:10:55 +00:00
name: Rust
# Trigger the workflow on push or pull request
on: [push, pull_request]
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
2020-02-10 12:54:51 +00:00
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
2019-09-21 11:10:55 +00:00
with:
2019-10-03 15:05:37 +00:00
toolchain: nightly
2019-09-21 11:10:55 +00:00
- run: rustup component add rustfmt
2020-02-10 12:54:51 +00:00
- uses: actions-rs/cargo@v2
2019-09-21 11:10:55 +00:00
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
2020-02-10 12:54:51 +00:00
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
2019-09-21 11:10:55 +00:00
with:
2019-09-22 18:33:40 +00:00
toolchain: stable
2019-09-21 11:10:55 +00:00
- run: rustup component add clippy
2020-02-10 12:54:51 +00:00
- uses: actions-rs/cargo@v2
2019-09-21 11:10:55 +00:00
with:
command: clippy
2019-09-22 18:33:40 +00:00
# args: -- -D warnings