Browse Source

Add a MSRV CI job (#1094)

* Add a MSVR CI job

Check that we don't use features that are only available on newer Rust versions.

* Add `rust-version` field to node hub packages

* Exclude `dora-rav1e` in `msrv` test job

* Add a name for the msrv job

* Exclude `dora-dav1d` in `msrv` test job
main
Philipp Oppermann GitHub 5 months ago
parent
commit
77c277910b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions
  1. +9
    -0
      .github/workflows/ci.yml
  2. +1
    -0
      node-hub/dora-dav1d/Cargo.toml
  3. +1
    -0
      node-hub/dora-mistral-rs/Cargo.toml

+ 9
- 0
.github/workflows/ci.yml View File

@@ -546,3 +546,12 @@ jobs:
use-cross: true use-cross: true
command: check command: check
args: --target ${{ matrix.platform.target }} --all --exclude dora-dav1d --exclude dora-rav1e --exclude dora-node-api-python --exclude dora-operator-api-python --exclude dora-ros2-bridge-python args: --target ${{ matrix.platform.target }} --all --exclude dora-dav1d --exclude dora-rav1e --exclude dora-node-api-python --exclude dora-operator-api-python --exclude dora-ros2-bridge-python

# copied from https://github.com/rust-lang/cargo/blob/6833aa715d724437dc1247d0166afe314ab6854e/.github/workflows/main.yml#L291
msrv:
name: "Check for specified `rust-version`"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --all-targets --rust-version --workspace --ignore-private --locked --exclude dora-rav1e --exclude dora-dav1d

+ 1
- 0
node-hub/dora-dav1d/Cargo.toml View File

@@ -3,6 +3,7 @@ name = "dora-dav1d"
edition.workspace = true edition.workspace = true
license = "BSD-2-Clause" license = "BSD-2-Clause"
version.workspace = true version.workspace = true
rust-version.workspace = true


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html




+ 1
- 0
node-hub/dora-mistral-rs/Cargo.toml View File

@@ -2,6 +2,7 @@
name = "dora-mistral-rs" name = "dora-mistral-rs"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
rust-version.workspace = true


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html




Loading…
Cancel
Save