diff options
author | lutzbichler <52852266+lutzbichler@users.noreply.github.com> | 2022-03-15 07:17:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 07:17:16 +0100 |
commit | 17cc55f24d1c56f6a5dcca6065a227ca91d01c90 (patch) | |
tree | d1459ae2f7a1388bf6d4362c2898d20d7bd01e47 | |
parent | 36dc5ee2536c82d611d98bd69f59151f50e700ea (diff) | |
parent | 4872ee2d8137648dbd83d46ab9f0c0df74869d93 (diff) | |
download | vSomeIP-17cc55f24d1c56f6a5dcca6065a227ca91d01c90.tar.gz |
Merge pull request #140 from janbernloehr/master
Add CI using github actions
-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/**/*' |