ffplayout/.github/workflows/rust.yml
2022-05-13 10:13:19 +02:00

24 lines
741 B
YAML

name: rust
on: [push, pull_request]
jobs:
build:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup update stable
- name: Cache cargo build
uses: actions/cache@v1
# with:
# path: target
# key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add rustfmt
- run: rustup component add clippy
- run: cargo build --all-features
- run: cargo test --all-features
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features --all-targets -- --deny warnings