Skip to content

Commit

Permalink
Declare and check MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Feb 14, 2024
1 parent 5f82007 commit cdb804c
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/rtsp-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

strategy:
matrix:
toolchain: [stable, beta, nightly]
toolchain: ['1.58', stable, beta, nightly]

steps:
- uses: actions/checkout@v2
Expand All @@ -54,28 +54,10 @@ jobs:
toolchain: ${{ matrix.toolchain }}
override: true

- name: Use MSRV Cargo.lock
run: cp Cargo.lock.msrv Cargo.lock
if: matrix.toolchain == '1.58'

- name: Run tests
run: |
cargo test
armv7-build:
runs-on: ubuntu-latest

strategy:
matrix:
toolchain: [stable, beta, nightly]

steps:
- uses: actions/checkout@v2

- name: Install ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: armv7-unknown-linux-gnueabihf
override: true

- name: Build
run: |
cargo build --target=armv7-unknown-linux-gnueabihf
107 changes: 107 additions & 0 deletions Cargo.lock.msrv

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ keywords = ["rtsp", "network", "protocol", "multimedia", "streaming"]
categories = ["network-programming", "multimedia"]
description = "RTSP (RFC 7826) types, parser and serializer"
readme = "README.md"
rust-version = "1.58"

[dependencies]
nom = "7.0"
Expand Down

0 comments on commit cdb804c

Please sign in to comment.