Debian Codegraph @

.github/workflows/build.yml

raw
1 name: build
2
3 on:
4 push:
5 pull_request:
6
7 jobs:
8 build:
9 strategy:
10 matrix:
11 include:
12 - name: Ubuntu 20.04
13 os: ubuntu-20.04
14 install_dir: ~/libebur128
15 cmake_extras: -DCMAKE_BUILD_TYPE=RelWithDebInfo
16 - name: macOS 10.15
17 os: macos-10.15
18 install_dir: ~/libebur128
19 cmake_extras: -DCMAKE_BUILD_TYPE=RelWithDebInfo
20 - name: Windows 2019
21 os: windows-2019
22 install_dir: C:\libebur128
23 cmake_extras: -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
24 cmake_config: --config RelWithDebInfo
25 ctest_config: --build-config RelWithDebInfo
26
27 name: ${{ matrix.name }}
28 runs-on: ${{ matrix.os }}
29 steps:
30 - name: Check out Git repository
31 uses: actions/checkout@v2
32 - name: Configure
33 run: cmake -DCMAKE_INSTALL_PREFIX=${{ matrix.install_dir }} -DBUILD_SHARED_LIBS=ON
34 ${{ matrix.cmake_extras }} -S . -B build
35 - name: Build
36 run: cmake --build build ${{ matrix.cmake_config }}
37 env:
38 CMAKE_BUILD_PARALLEL_LEVEL: 2
39 # TODO: build and run tests and fuzzer
40 - name: Install
41 run: cmake --install build ${{ matrix.cmake_config }}
42 - name: Upload Build Artifact
43 uses: actions/upload-artifact@v2
44 with:
45 name: ${{ matrix.name }} libebur128 build
46 path: ${{ matrix.install_dir }}