try fixing build in ROS #160
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ubuntu Build & Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache apt packages | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: git cmake liblz4-dev libzstd-dev libgtest-dev | |
| version: 1.0 | |
| - name: Cache CMake files | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/cmake | |
| build | |
| key: ${{ runner.os }}-cmake-${{ hashFiles('**/CMakeLists.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cmake- | |
| - name: Configure | |
| run: | | |
| mkdir -p build | |
| cd build | |
| cmake ../cloudini_lib -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON | |
| - name: Build | |
| working-directory: build | |
| run: make -j$(nproc) | |
| - name: Run tests | |
| working-directory: build | |
| run: ctest --output-on-failure |