Skip to content

Commit b3f5895

Browse files
FreezyLemonshssoichiro
authored andcommitted
Add CI job to check the MSRV
1 parent dfe0085 commit b3f5895

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/rav1e.yml

+39
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,40 @@ jobs:
2929
with:
3030
args: -- -D warnings --verbose -A clippy::wrong-self-convention -A clippy::many_single_char_names -A clippy::upper-case-acronyms
3131

32+
msrv:
33+
runs-on: ubuntu-22.04
34+
35+
env:
36+
CARGO_INCREMENTAL: 0
37+
RUSTFLAGS: '-Dwarnings'
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
# Minimum version in build.rs
43+
- name: Install NASM 2.15
44+
uses: ilammy/setup-nasm@v1
45+
with:
46+
version: 2.15
47+
48+
# Minimum version in Cargo.toml
49+
- name: Install Rust 1.70.0
50+
uses: dtolnay/[email protected]
51+
with:
52+
targets: wasm32-unknown-unknown
53+
54+
- uses: Swatinem/rust-cache@v2
55+
56+
- name: Run cargo check
57+
run: cargo check
58+
59+
- name: Run cargo check (wasm32)
60+
run: >
61+
cargo check
62+
--target wasm32-unknown-unknown
63+
--no-default-features
64+
-F wasm
65+
3266
build-unix:
3367
strategy:
3468
matrix:
@@ -84,6 +118,7 @@ jobs:
84118
SCCACHE_IDLE_TIMEOUT: 0
85119

86120
runs-on: ubuntu-22.04
121+
needs: [rustfmt-clippy, msrv]
87122

88123
steps:
89124
- uses: actions/checkout@v4
@@ -307,6 +342,8 @@ jobs:
307342
SCCACHE_DIR: /Users/runner/Library/Caches/Mozilla.sccache
308343

309344
runs-on: macos-latest
345+
needs: [rustfmt-clippy, msrv]
346+
310347
steps:
311348
- uses: actions/checkout@v4
312349
- name: Install sccache
@@ -382,6 +419,8 @@ jobs:
382419
SCCACHE_DIR: C:\sccache
383420

384421
runs-on: windows-latest
422+
needs: [rustfmt-clippy, msrv]
423+
385424
steps:
386425
- uses: actions/checkout@v4
387426
- uses: ilammy/setup-nasm@v1

0 commit comments

Comments
 (0)