message: Add cache to ubuntu jobs
diff: @@ -20,10 +20,18 @@ jobs:
  - uses: actions/checkout@v2
  with:
  submodules: recursive
  + - uses: actions/cache@v2
  + id: cache
  + with:
  + path: ./build/third_party/install
  + key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}
  + - name: disable superbuild on cache hit
  + if: steps.cache.outputs.cache-hit == 'true'
  + run: echo "superbuild=-DSUPERBUILD=OFF" >> $GITHUB_ENV && echo "cmake_prefix_path=-DCMAKE_PREFIX_PATH=$(pwd)/build/third_party/install" >> $GITHUB_ENV
  - name: Install lcov
  run: sudo apt-get update && sudo apt-get install -y lcov
  - name: configure
  - run: cmake -DCMAKE_BUILD_TYPE=Coverage -DASAN=ON -DUBSAN=ON -DLSAN=ON -DWERROR=OFF -j 2 -Bbuild -H.
  + run: cmake $superbuild $cmake_prefix_path -DCMAKE_BUILD_TYPE=Coverage -DASAN=ON -DUBSAN=ON -DLSAN=ON -DWERROR=OFF -j 2 -Bbuild -H.
  - name: build
  run: cmake --build build -j 2
  - name: test
  @@ -59,8 +67,16 @@ jobs:
  - uses: actions/checkout@v2
  with:
  submodules: recursive
  + - uses: actions/cache@v2
  + id: cache
  + with:
  + path: ./build/release/third_party/install
  + key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}
  + - name: disable superbuild on cache hit
  + if: steps.cache.outputs.cache-hit == 'true'
  + run: echo "superbuild=-DSUPERBUILD=OFF" >> $GITHUB_ENV && echo "cmake_prefix_path=-DCMAKE_PREFIX_PATH=$(pwd)/build/release/third_party/install" >> $GITHUB_ENV
  - name: configure
  - run: cmake -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD=ON -DBUILD_MAVSDK_SERVER=ON -DWERROR=OFF -j 2 -Bbuild/release -H.
  + run: cmake $superbuild $cmake_prefix_path -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD=ON -DBUILD_MAVSDK_SERVER=ON -DWERROR=OFF -j 2 -Bbuild/release -H.
  - name: build
  run: cmake --build build/release -j 2
  - name: install
  @@ -90,8 +106,16 @@ jobs:
  cd proto/pb_plugins
  pip3 install --user -r requirements.txt
  pip3 install --user -e .
  + - uses: actions/cache@v2
  + id: cache
  + with:
  + path: ./build/default/third_party/install
  + key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}
  + - name: disable superbuild on cache hit
  + if: steps.cache.outputs.cache-hit == 'true'
  + run: echo "superbuild=-DSUPERBUILD=OFF" >> $GITHUB_ENV && echo "cmake_prefix_path=-DCMAKE_PREFIX_PATH=$(pwd)/build/default/third_party/install" >> $GITHUB_ENV
  - name: build necessary protoc tooling
  - run: cmake -DBUILD_MAVSDK_SERVER=ON -Bbuild/default -H.
  + run: cmake $superbuild $cmake_prefix_path -DBUILD_MAVSDK_SERVER=ON -Bbuild/default -H.
  - name: generate code from protos
  run: PATH="$PATH:$HOME/.local/bin" tools/generate_from_protos.sh
  - name: fix style
  