diff options
author | JackLivio <jack@livio.io> | 2021-05-21 10:42:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 10:42:33 -0400 |
commit | 9ac9acdec6d82b280fca5286549ea904e7bc8b4c (patch) | |
tree | 6dd928b65572dbb962aef5cdfa23bde830096651 /.github | |
parent | 055bd3c4791ca73f9f6c70970119a92b864684f8 (diff) | |
download | sdl_core-9ac9acdec6d82b280fca5286549ea904e7bc8b4c.tar.gz |
Feature/GitHub actions ci (#3701)
* Test github action
* Build Core
* Fix path
* Add submodules
* Move path
* Debug policy cmake paths
* Debug lines
* Change build directory
* Print sources
* Change core path
* ls debug
* Log cmake version
* Try ubuntu 18
* Set Cmake version
* Change cmake depdency
* Remove version wildcard
* Debug collect sources
* More debug messages
* Check filtered files
* Remove bad policy path exclude
* Try caching 3rd party
* Fix env var
* Update 3rd party path
* Fix path
* Remove env var
* Fix space
* Update path
* Update core path
* Fix boost install path
* Add 3rd party arch path
* Set LD_LIBRARY_PATH
* Add check style
* Fix cache path
* Update README badge status
* Move 3rd party build path
* Remove Travis
* Move cache call earlier
* Fix syntax
* Conditional mkdir
* Add debug line
* Add logs
* Fix syntax
* Fix syntax
* Remove log lines
* Use boost logger
* Update cache
* Remove -j
* Top level boost include
* Adjust boost includes
* Remove boost logger
* Invalidate cache
* Update CMakeLists.txt
* Update CMakeLists.txt
* Update CMakeLists.txt
* Update CMakeLists.txt
* Update sdl_core_github_ci.yml
* Update CMakeLists.txt
* Update CMakeLists.txt
* Update CMakeLists.txt
* Add pull request action
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/sdl_core_github_ci.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/sdl_core_github_ci.yml b/.github/workflows/sdl_core_github_ci.yml new file mode 100644 index 0000000000..d5700e8331 --- /dev/null +++ b/.github/workflows/sdl_core_github_ci.yml @@ -0,0 +1,44 @@ +name: SDL Core Build +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Init Submodules + run: git -C ${{ github.workspace }} submodule update --init --recursive + # Install Dependencies + - name: Apt Get Dependencies + run: sudo apt-get update && sudo apt-get install libssl-dev libbluetooth3 libbluetooth-dev libudev-dev cmake html2text lcov git cmake automake1.11 build-essential libavahi-client-dev sqlite3 libsqlite3-dev libgtest-dev bluez-tools libpulse-dev libusb-1.0.0-dev cppcheck python3-pip python3-setuptools && sudo apt-get install -f clang-format-6.0 + - name: Setup CMAKE + uses: jwlawson/actions-setup-cmake@v1.8 + with: + cmake-version: '3.16.3' + # Check Style + - name: Check Style + run: ${{ github.workspace }}/tools/infrastructure/check_style.sh + # Build Project + - name: Cache 3rd Party + id: core-3rd-party + uses: actions/cache@v2 + with: + path: ${{ github.workspace }}/core_3rd_party + key: ${{ runner.os }}-core-3rd-party-v3 + - name: Make 3rd Party Directory + if: steps.core-3rd-party.outputs.cache-hit != 'true' + run: mkdir ${{ github.workspace }}/core_3rd_party + - name: Make Directories + run: cd ${{ github.workspace }} && cd ../ && mkdir build && cd build + - name: Set 3rd Party Path + run: echo "THIRD_PARTY_INSTALL_PREFIX=${{ github.workspace }}/core_3rd_party" >> $GITHUB_ENV + - name: Set 3rd Party ARCH Path + run: echo "THIRD_PARTY_INSTALL_PREFIX_ARCH=${{ github.workspace }}/core_3rd_party" >> $GITHUB_ENV + - name: Configure + run: cmake ../sdl_core -DBUILD_TESTS=ON -DLOGGER_NAME=BOOST + - name: Build + run: make install-3rd_party && make -j `nproc` install + - name: Set Library Path + run: echo "LD_LIBRARY_PATH=$THIRD_PARTY_INSTALL_PREFIX/lib:." >> $GITHUB_ENV + # run tests + - name: Unit Tests + run: make test |