Merge branch 'ffplayout:master' into master
This commit is contained in:
commit
e1283d2711
38
.github/workflows/rust.yml
vendored
38
.github/workflows/rust.yml
vendored
@ -1,22 +1,22 @@
|
|||||||
name: Rust
|
name: rust
|
||||||
|
on: [push, pull_request]
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
strategy:
|
||||||
runs-on: ubuntu-latest
|
matrix:
|
||||||
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- run: rustup update stable
|
||||||
run: cargo build --verbose
|
- name: Cache cargo build
|
||||||
- name: Run tests
|
uses: actions/cache@v1
|
||||||
run: cargo test --verbose
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user