Skip to content

Commit

Permalink
Add CI job to check the MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and shssoichiro committed Mar 12, 2024
1 parent dfe0085 commit b3f5895
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rav1e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,40 @@ jobs:
with:
args: -- -D warnings --verbose -A clippy::wrong-self-convention -A clippy::many_single_char_names -A clippy::upper-case-acronyms

msrv:
runs-on: ubuntu-22.04

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: '-Dwarnings'

steps:
- uses: actions/checkout@v4

# Minimum version in build.rs
- name: Install NASM 2.15
uses: ilammy/setup-nasm@v1
with:
version: 2.15

# Minimum version in Cargo.toml
- name: Install Rust 1.70.0
uses: dtolnay/[email protected]
with:
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2

- name: Run cargo check
run: cargo check

- name: Run cargo check (wasm32)
run: >
cargo check
--target wasm32-unknown-unknown
--no-default-features
-F wasm
build-unix:
strategy:
matrix:
Expand Down Expand Up @@ -84,6 +118,7 @@ jobs:
SCCACHE_IDLE_TIMEOUT: 0

runs-on: ubuntu-22.04
needs: [rustfmt-clippy, msrv]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -307,6 +342,8 @@ jobs:
SCCACHE_DIR: /Users/runner/Library/Caches/Mozilla.sccache

runs-on: macos-latest
needs: [rustfmt-clippy, msrv]

steps:
- uses: actions/checkout@v4
- name: Install sccache
Expand Down Expand Up @@ -382,6 +419,8 @@ jobs:
SCCACHE_DIR: C:\sccache

runs-on: windows-latest
needs: [rustfmt-clippy, msrv]

steps:
- uses: actions/checkout@v4
- uses: ilammy/setup-nasm@v1
Expand Down

0 comments on commit b3f5895

Please sign in to comment.