77 branches : [ "master" ]
88
99env :
10- # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1110 BUILD_TYPE : Release
1211 SPECTRAL_DSN : ${{ secrets.SPECTRAL_DSN }}
1312
1413jobs :
1514 build :
16- # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
17- # You can convert this to a matrix build if you need cross-platform coverage.
18- # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1915 runs-on : ubuntu-latest
2016
2117 steps :
@@ -24,45 +20,53 @@ jobs:
2420 - name : Update system
2521 run : sudo apt update
2622
27- - name : Install needed deps
28- run : sudo apt install -y libboost-dev libboost-filesystem-dev libconfig++-dev libsqlite3-dev ffmpeg git libjsoncpp-dev
23+ - name : Install needed deps
24+ run : sudo apt install -y libboost-dev libboost-filesystem-dev libboost-process-dev libconfig++-dev libsqlite3-dev ffmpeg git libjsoncpp-dev
2925
3026 - name : Install GCC11
3127 shell : bash
32- run : |
33- sudo apt install gcc-11 g++-11
34- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
28+ run : |
29+ sudo apt install -y gcc-11 g++-11
30+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 \
31+ --slave /usr/bin/g++ g++ /usr/bin/g++-11 \
32+ --slave /usr/bin/gcov gcov /usr/bin/gcov-11
3533
3634 - name : Configure CMake All ON
37- # Configure CMake in a ' build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
38- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
39- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_HEVC=ON -DENABLE_AAC=ON -DENABLE_FDKAAC=ON - DENABLE_AC3=ON -DENABLE_EAC3=ON -DENABLE_OPUS=ON
35+ run : cmake -B ${{github.workspace}}/ build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
36+ -DENABLE_HEVC=ON -DENABLE_AAC=ON -DENABLE_FDKAAC=ON \
37+ - DENABLE_AC3=ON -DENABLE_EAC3=ON -DENABLE_OPUS=ON
4038
4139 - name : Build
42- # Build your program with the given configuration
4340 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
4441
4542 - name : Configure CMake All OFF
46- # Configure CMake in a ' build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
47- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
48- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_HEVC=OFF -DENABLE_AAC=OFF -DENABLE_FDKAAC=OFF - DENABLE_AC3=OFF -DENABLE_EAC3=OFF -DENABLE_OPUS=OFF
43+ run : cmake -B ${{github.workspace}}/ build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
44+ -DENABLE_HEVC=OFF -DENABLE_AAC=OFF -DENABLE_FDKAAC=OFF \
45+ - DENABLE_AC3=OFF -DENABLE_EAC3=OFF -DENABLE_OPUS=OFF
4946
5047 - name : Build
51- # Build your program with the given configuration
52- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
48+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
5349
54- # - name: Test
55- # working-directory: ${{github.workspace}}/build
56- # # Execute tests defined by the CMake configuration.
57- # # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
58- # run: ctest -C ${{env.BUILD_TYPE}}
5950 scan :
6051 runs-on : ubuntu-latest
6152 steps :
62- - uses : actions/checkout@v2
53+ - uses : actions/checkout@v3
54+
55+ - name : Update system
56+ run : sudo apt update
57+
58+ - name : Install needed deps
59+ run : sudo apt install -y libboost-dev libboost-filesystem-dev libboost-process-dev libconfig++-dev libsqlite3-dev ffmpeg git libjsoncpp-dev
60+
61+ - name : Install GCC11
62+ run : |
63+ sudo apt install -y gcc-11 g++-11
64+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 \
65+ --slave /usr/bin/g++ g++ /usr/bin/g++-11 \
66+ --slave /usr/bin/gcov gcov /usr/bin/gcov-11
67+
6368 - name : Install and run Spectral CI
6469 uses : checkpointsw/spectral-github-action@v3
6570 with :
6671 spectral-dsn : ${{ env.SPECTRAL_DSN }}
67- spectral-args : scan --ok --include-tags base,audit3
68-
72+ spectral-args : scan --ok --include-tags base,audit3
0 commit comments