forked from Kagami/SVT-AV1
-
Notifications
You must be signed in to change notification settings - Fork 0
147 lines (142 loc) · 4.57 KB
/
msvc.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: MSVC builds
on:
push:
paths-ignore:
- "Docs/*"
- .travis.yml
- appveyor.yml
- .gitignore
- "*.md"
pull_request:
paths-ignore:
- "Docs/*"
- .travis.yml
- appveyor.yml
- .gitignore
- "*.md"
env:
GTEST_TOTAL_SHARDS: 8
SVT_AV1_TEST_VECTOR_PATH: ${{ github.workspace }}/test/vectors
jobs:
build:
runs-on: windows-2019
strategy:
matrix:
configuration:
- Debug
- Release
env:
CFLAGS: /WX
CXXFLAGS: /WX
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: choco install -y nasm
- name: Configure SVT-AV1
run: cmake -S . -B Build -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=C:/SVT-AV1 -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON
- name: Build SVT-AV1
run: cmake --build Build --parallel 4 --config ${{ matrix.configuration }} --target install
- name: Download videos
if: matrix.configuration == 'Debug'
run: |
Invoke-WebRequest -OutFile video.tar.gz -Uri https://raw.githubusercontent.com/OpenVisualCloud/SVT-AV1-Resources/master/video.tar.gz
if (!(Test-Path -Path video.tar.gz)) {
Invoke-WebRequest -OutFile video.tar.gz -Uri http://randomderp.com/video.tar.gz
}
tar xf video.tar.gz
- name: Upload videos
if: matrix.configuration == 'Debug'
uses: actions/upload-artifact@v2
with:
name: svtav1-videos
path: "*.y4m"
- name: Upload binaries SVT-AV1 (MSVC)
if: matrix.configuration == 'Release'
uses: actions/upload-artifact@v2
with:
name: svtav1-MSVC-binaries
path: Bin/Release
- name: Cache vectors
id: cache-vectors
if: matrix.configuration == 'Debug'
uses: actions/cache@v2
with:
path: test/vectors
key: svtav1-vectors-${{ hashFiles('test/e2e_test/test_vector_list.txt') }}
- name: Get test vectors
if: matrix.configuration == 'Debug' && steps.cache-vectors.outputs.cache-hit != 'true'
run: cmake --build Build --parallel 4 --target TestVectors
- name: Upload vectors
if: matrix.configuration == 'Debug'
uses: actions/upload-artifact@v2
with:
name: svtav1-vectors-${{ hashFiles('test/e2e_test/test_vector_list.txt') }}
path: test/vectors
bit-depth-tests:
name: ${{ matrix.bit }} tests
runs-on: windows-2019
needs: build
strategy:
fail-fast: false
matrix:
include:
- bit: 8
video: akiyo_cif.y4m
- bit: 10
video: Chimera-Aerial_480x264_2997fps_10bit_420_150frames.y4m
steps:
- name: Download binaries SVT-AV1 (MSVC)
uses: actions/download-artifact@v2
with:
name: svtav1-MSVC-binaries
- name: Download videos
uses: actions/download-artifact@v2
with:
name: svtav1-videos
- name: ${{ matrix.bit }}bit tests
run: |
./SvtAv1EncApp --preset 0 -i ${{ matrix.video }} -n 3 -b test-pr-${{ matrix.bit }}bit-m0.ivf
./SvtAv1EncApp --preset 8 -i ${{ matrix.video }} -n 120 -b test-pr-${{ matrix.bit }}bit-m8.ivf
unit-tests:
name: Unit Tests (Windows, VS2019) Shard ${{ matrix.index }}
runs-on: windows-2019
needs: build
strategy:
fail-fast: false
matrix:
index: [0, 1, 2, 3, 4, 5, 6, 7]
env:
GTEST_SHARD_INDEX: ${{ matrix.index }}
steps:
- uses: actions/checkout@v2
- name: Download binaries SVT-AV1 (MSVC)
uses: actions/download-artifact@v2
with:
name: svtav1-MSVC-binaries
path: Bin/Release
- name: Run unit tests shard
run: ./Bin/Release/SvtAv1UnitTests.exe --gtest_filter=-*FFT*
e2e-tests:
name: E2E Tests (Windows, VS2019) Shard ${{ matrix.index }}
runs-on: windows-2019
needs: build
strategy:
fail-fast: false
matrix:
index: [0, 1, 2, 3, 4, 5, 6, 7]
env:
GTEST_SHARD_INDEX: ${{ matrix.index }}
steps:
- uses: actions/checkout@v2
- name: Download binaries SVT-AV1 (MSVC)
uses: actions/download-artifact@v2
with:
name: svtav1-MSVC-binaries
path: Bin/Release
- name: Download vectors
uses: actions/download-artifact@v2
with:
name: svtav1-vectors-${{ hashFiles('test/e2e_test/test_vector_list.txt') }}
path: test/vectors
- name: Run E2E tests shard
run: ./Bin/Release/SvtAv1E2ETests.exe --gtest_filter=-*DummySrcTest*