Added serde derived Serializer behind a feature flag #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rtsp-types | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
rustfmt-clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: clippy, rustfmt | |
- name: Run rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
- name: Run clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-targets --all-features -- -D warnings | |
ubuntu-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: ['1.65', stable, beta, nightly] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install ${{ matrix.toolchain }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- name: Use MSRV Cargo.lock | |
run: cp Cargo.lock.msrv Cargo.lock | |
if: matrix.toolchain == '1.65' | |
- name: Run tests | |
run: | | |
cargo test |