-
Notifications
You must be signed in to change notification settings - Fork 4
103 lines (91 loc) · 2.84 KB
/
regression-tests.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
name: Regression tests
on:
push:
branches:
- '**'
tags:
- 'v*'
paths-ignore:
- 'buildtools/docker/**'
- 'docs/**'
- '.vscode/**'
- '.devcontainer/**'
- '**.md'
jobs:
ffmpeg-fate:
runs-on: ubuntu-latest
container:
image: ghcr.io/wangyoucao577/ffmpeg-build/linux-debian11
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'true'
- name: Build and run ffmpeg fate suites
run: |
export FFMPEG_ENABLE_FATE_TESTS=true
buildtools/scripts/build.sh
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ffbuild-logs-fate
path: ffmpeg/ffbuild/config.log
ffmpeg-coverage:
runs-on: ubuntu-latest
container:
image: ghcr.io/wangyoucao577/ffmpeg-build/linux-debian11
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'true'
- name: Build with gcov and run ffmpeg fate suites
run: |
export FFMPEG_BUILD_TYPE=Debug
export FFMPEG_ENABLE_FATE_TESTS=true
export FFMPEG_TOOLCHAIN_COVERAGE=true
buildtools/scripts/build.sh
- name: Run acceptance tests
run: |
cp build/bin/vmaf*.json ffmpeg/
cd ffmpeg
export FFMPEG_BIN_PATH=.
../tests/acceptance-test.sh
# use gcvor instead of lcov https://trac.ffmpeg.org/wiki/FATE/TestingCoverage
# exclude '.*template.c' to avoid assert since they may compiled more than once,
# see more in https://github.com/gcovr/gcovr/issues/586
- name: Generate coverage report
run: |
cd ffmpeg
mkdir -p coverage
gcovr -v --exclude '.*template.c' --html-details --output coverage/index.html
- uses: actions/upload-artifact@v3
with:
name: ffmpeg-coverage
path: ffmpeg/coverage
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ffbuild-logs-coverage
path: ffmpeg/ffbuild/config.log
# ffmpeg-valgrind-memcheck:
# timeout-minutes: 720
# runs-on: ubuntu-latest
# container:
# image: ghcr.io/wangyoucao577/ffmpeg-build/linux-debian11
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: '0'
# submodules: 'true'
# - name: Build with gcov and run ffmpeg fate suites
# run: |
# export FFMPEG_BUILD_TYPE=Debug
# export FFMPEG_ENABLE_FATE_TESTS=true
# export FFMPEG_TOOLCHAIN_VALGRIND_MEMCHECK=true
# buildtools/scripts/build.sh
# - uses: actions/upload-artifact@v3
# if: failure()
# with:
# name: ffbuild-logs-valgrind-memcheck
# path: ffmpeg/ffbuild/config.log