• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: C/C++ CI
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9jobs:
10  build:
11    runs-on: [ubuntu-18.04]
12
13    steps:
14    - uses: actions/checkout@v2
15    - name: install dependencies
16      run: |
17        sudo apt-get update -qq
18        sudo apt-get install -y libboost-system-dev libboost-thread-dev libboost-log-dev googletest asciidoc source-highlight doxygen graphviz
19    - name: Run CMake+Ninja without triplet
20      uses: lukka/run-cmake@v2
21      with:
22        cmakeGenerator: 'Ninja'
23        cmakeListsOrSettingsJson: 'CMakeListsTxtAdvanced'
24        cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
25        cmakeAppendedArgs: '-DGTEST_ROOT=/usr/src/googletest/googletest/ -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install'
26        buildWithCMakeArgs: '-t all build_tests doc install'
27        buildDirectory: '${{ runner.workspace }}/build'
28    - uses: actions/upload-artifact@v2
29      with:
30        name: vsomeip
31        path: '${{ runner.workspace }}/install/**/*'
32