Build tests without -O0 also in the autoconf build #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |