diff options
author | janbernloehr <jan@bernloehrs.de> | 2020-07-06 21:40:44 +0200 |
---|---|---|
committer | janbernloehr <jan@bernloehrs.de> | 2020-07-07 00:07:11 +0200 |
commit | 4872ee2d8137648dbd83d46ab9f0c0df74869d93 (patch) | |
tree | d5aacbfa21206776f49855e6791e5573e47f6e33 | |
parent | 3ccf1c682d31e453d356e4b902d8aebce3f376a1 (diff) | |
download | vSomeIP-4872ee2d8137648dbd83d46ab9f0c0df74869d93.tar.gz |
Add ci
-rw-r--r-- | .github/workflows/c-cpp.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..c8e23ea --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,31 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: [ubuntu-18.04] + + steps: + - uses: actions/checkout@v2 + - name: install dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -y libboost-system-dev libboost-thread-dev libboost-log-dev googletest asciidoc source-highlight doxygen graphviz + - name: Run CMake+Ninja without triplet + uses: lukka/run-cmake@v2 + with: + cmakeGenerator: 'Ninja' + cmakeListsOrSettingsJson: 'CMakeListsTxtAdvanced' + cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' + cmakeAppendedArgs: '-DGTEST_ROOT=/usr/src/googletest/googletest/ -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install' + buildWithCMakeArgs: '-t all build_tests doc install' + buildDirectory: '${{ runner.workspace }}/build' + - uses: actions/upload-artifact@v2 + with: + name: vsomeip + path: '${{ runner.workspace }}/install/**/*' |