Debian Codegraph @

.github/workflows/ci_build.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 branches: [ dev ]
6 pull_request:
7 branches: [ dev ]
8
9 env:
10 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11 BUILD_TYPE: Release
12
13 jobs:
14 build:
15 # The CMake configure and build commands are platform agnostic and should work equally
16 # well on Windows or Mac. You can convert this to a matrix build if you need
17 # 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
19 runs-on: ubuntu-latest
20
21 strategy:
22 matrix:
23 qt-version: [5.15.*, 6.6.*]
24
25 steps:
26 - name: Install Qt
27 uses: jurplel/install-qt-action@v4
28 with:
29 version: ${{ matrix.qt-version }}
30
31 - name: install_deps
32 run: sudo apt-get install cmake libsamplerate0-dev libfftw3-dev
33
34 - uses: actions/checkout@v4
35
36 - name: Configure CMake
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: |
40 PARAM=OFF
41 if [[ "${{ matrix.qt-version }}" == "5.15.*" ]]; then
42 PARAM=ON
43 fi
44 cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_QT5=$PARAM
45
46 - name: Build
47 # Build your program with the given configuration
48 run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
49
50 - name: Test
51 working-directory: ${{github.workspace}}/build
52 # Execute tests defined by the CMake configuration.
53 # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
54 run: ctest -C ${{env.BUILD_TYPE}}