-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (48 loc) · 1.51 KB
/
Copy pathhw-decode.yml
File metadata and controls
59 lines (48 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: HW Decode Platforms
on:
push:
paths:
- 'crates/yscv-video/src/hw_decode.rs'
- '.github/workflows/hw-decode.yml'
pull_request:
paths:
- 'crates/yscv-video/src/hw_decode.rs'
jobs:
hw-decode:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
features: videotoolbox
name: macOS + VideoToolbox
- os: ubuntu-latest
features: ""
name: Linux (SW fallback)
- os: windows-latest
features: ""
name: Windows (SW fallback)
- os: [self-hosted, linux, nvidia]
features: nvdec
name: Linux + NVDEC (self-hosted)
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build (default features)
run: cargo build -p yscv-video
- name: Build (HW features)
if: matrix.features != ''
run: cargo build -p yscv-video --features ${{ matrix.features }}
- name: Test (default)
run: cargo test -p yscv-video
- name: Test (HW features)
if: matrix.features != ''
run: cargo test -p yscv-video --features ${{ matrix.features }}
- name: Clippy
run: cargo clippy -p yscv-video -- -D warnings
- name: Clippy (HW features)
if: matrix.features != ''
run: cargo clippy -p yscv-video --features ${{ matrix.features }} -- -D warnings