-
Notifications
You must be signed in to change notification settings - Fork 103
100 lines (95 loc) · 3 KB
/
ccpp.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
name: C/C++ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-test-ubuntu:
runs-on: ubuntu-18.04
steps:
- run: |
sudo apt-get update
sudo apt install g++-10 gcc-10 libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libswscale-dev
- uses: actions/checkout@v2
- name: setup
run: mkdir build
- name: configure
working-directory: ./build
run: ../configure
env:
CC: gcc-10
CXX: g++-10 -Werror -Wno-error=stringop-overflow
- name: make
working-directory: ./build
run: make
- name: make test
working-directory: ./build
run: make test
build-test-ubuntu-cmake:
runs-on: ubuntu-22.04
steps:
- run: |
sudo apt-get update
sudo apt install g++-10 gcc-10 cmake libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libswscale-dev libeigen3-dev libopencv-dev libtoon-dev
- uses: actions/checkout@v2
- name: setup
run: mkdir build
- name: configure
working-directory: ./build
run: cmake -DCMAKE_BUILD_TYPE=Debug -DCVD_ENABLE_OPENCV_TESTS=ON ..
env:
CC: gcc-10
CXX: g++-10 -Werror -fsanitize=address,undefined -fno-omit-frame-pointer -DCVD_IMAGE_DEBUG -DTIFF_DISABLE_DEPRECATED -Wno-error=stringop-overflow
- name: make
run: make
working-directory: ./build
- name: ctest
working-directory: ./build
run: ASAN_OPTIONS=fast_unwind_on_malloc=0 ctest . || (cat ./Testing/Temporary/LastTest.log; exit 1)
clang-format-ubuntu:
runs-on: ubuntu-18.04
steps:
- run: |
sudo apt-get update
sudo apt install clang-format-10
- uses: actions/checkout@v2
- name: format
run: find . \( -name '*.cpp' -o -name '*.h' -o -name '*.cc' -o -name '*.cxx' \) -a -not -path ./progs/video_iOS/\* | xargs -n 1 clang-format-10 --verbose -i
- run: |
if ! git diff-index --exit-code --quiet HEAD; then
git diff
exit 1
fi
build-test-ubuntu-cmake-light:
runs-on: ubuntu-18.04
steps:
- run: |
sudo apt-get update
sudo apt install g++-10 gcc-10 cmake
- uses: actions/checkout@v2
- name: setup
run: mkdir build
- name: configure
working-directory: ./build
run: cmake -DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_TIFF=TRUE ..
env:
CC: gcc-10
CXX: g++-10 -Werror -Wno-stringop-overflow
- name: make
run: make
working-directory: ./build
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: setup
run: md build
- name: configure
working-directory: ./build
run: cmake -DCVD_ENABLE_PROGS=OFF -DCVD_ENABLE_TESTS=OFF -DCVD_ENABLE_EXAMPLES=OFF ..
- name: compile
working-directory: ./build
run: msbuild CVD.sln