-
Notifications
You must be signed in to change notification settings - Fork 4
117 lines (115 loc) · 3.62 KB
/
rust.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Rust
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12-large]
include:
- os: macos-12-large
args: --exclude v4l2
steps:
- uses: actions/checkout@v1
- name: Set Up Linux
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt-get update && sudo apt-get install -y nasm libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev
git clone https://github.com/mirror/x264.git x264-mirror
(cd x264-mirror && git checkout 5db6aa6cab1b146e07b60cc1736a01f21da01154 && ./configure --disable-cli --enable-static && make -j && sudo make install)
git clone https://github.com/ultravideo/kvazaar.git
(cd kvazaar && git checkout 8143ab971cbbdd78a3ac12cf7904209e1db659c6 && ./autogen.sh && ./configure && make -j && sudo make install)
- name: Set Up macOS
if: startsWith(matrix.os, 'macos-')
run: |
echo "LIBCLANG_PATH=/Library/Developer/CommandLineTools/usr/lib/libclang.dylib" >> $GITHUB_ENV
brew install kvazaar x264 ffmpeg@4
brew link ffmpeg@4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
components: clippy
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --workspace --exclude xilinx --features srt/async ${{ matrix.args }}
- name: Lint
run: cargo clippy --workspace --exclude xilinx --features srt/async --all-targets ${{ matrix.args }} -- --deny warnings
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --workspace --exclude xilinx --all-features --exclude xcoder-quadra --exclude xcoder-logan --exclude v4l2 --exclude rkmpp ${{ matrix.args }}
test_xcoder_logan:
name: Test xcoder-logan
runs-on:
- self-hosted
- netint-t408-310X2013
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Initialize
run: |
init_rsrc_logan || true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose -p xcoder-logan -p xcoder-logan-310-sys -- --test-threads=1
test_xcoder_logan_v2_compat:
name: Test xcoder-logan v2-compat
runs-on:
- self-hosted
- netint-t408-251X1E09
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Initialize
run: |
init_rsrc || true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose -p xcoder-logan -p xcoder-logan-259-sys --features v2-compat -- --test-threads=1
test_xcoder_quadra:
name: Test xcoder-quadra
runs-on:
- self-hosted
- netint-quadra
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Initialize
run: |
init_rsrc || true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose -p xcoder-quadra -p xcoder-quadra-sys -- --test-threads=1