Feat implement get 3d meshes #1914
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: Test | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - conanfile.py | |
| - '**.md' | |
| workflow_dispatch: | |
| inputs: | |
| no-tidy: | |
| type: boolean | |
| description: set to true to build without clang-tidy (2x faster) | |
| jobs: | |
| test_ubuntu: | |
| if: github.repository_owner == 'viamrobotics' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:bookworm | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - BUILD_SHARED: ON | |
| - BUILD_SHARED: OFF | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| apt-get update | |
| apt-get -y dist-upgrade | |
| DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ | |
| build-essential \ | |
| ca-certificates \ | |
| cmake \ | |
| curl \ | |
| doxygen \ | |
| g++ \ | |
| gdb \ | |
| git \ | |
| gnupg \ | |
| gpg \ | |
| less \ | |
| libboost-all-dev \ | |
| libc-ares-dev \ | |
| libgrpc++-dev \ | |
| libprotobuf-dev \ | |
| libre2-dev \ | |
| libssl-dev \ | |
| ninja-build \ | |
| pkg-config \ | |
| protobuf-compiler-grpc \ | |
| software-properties-common \ | |
| sudo \ | |
| wget \ | |
| zlib1g-dev | |
| bash -c 'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add -' | |
| apt-add-repository -y 'deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main' | |
| apt-add-repository -y 'deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main' | |
| apt-get update | |
| DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install -t llvm-toolchain-bookworm-15 \ | |
| clang-15 \ | |
| clang-tidy-15 \ | |
| clang-format | |
| - name: cmake | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. -G Ninja \ | |
| -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED }} \ | |
| -DVIAMCPPSDK_OFFLINE_PROTO_GENERATION=ON \ | |
| -DVIAMCPPSDK_BUILD_TESTS=ON \ | |
| -DVIAMCPPSDK_BUILD_EXAMPLES=ON \ | |
| -DVIAMCPPSDK_CLANG_TIDY=${{ inputs.no-tidy && 'OFF' || 'ON' }} \ | |
| -DVIAMCPPSDK_SANITIZED_BUILD=${{ matrix.BUILD_SHARED }} | |
| - name: build | |
| run: | | |
| cmake --build build --target install | |
| cmake --install build | |
| - name: test | |
| working-directory: build | |
| run: ../etc/docker/tests/run_test.sh | |
| test_windows: | |
| if: github.repository_owner == 'viamrobotics' | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: x86_64-windows | |
| platform: windows_x86_64 | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ needs.prepare.outputs.sha }} | |
| - name: Install dependencies | |
| run: choco install -y conan git | |
| - name: Build SDK | |
| shell: powershell | |
| run: | | |
| Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
| refreshenv | |
| conan profile detect | |
| conan install . --build=missing -o "&:shared=False" | |
| cmake . --preset conan-default -DVIAMCPPSDK_BUILD_EXAMPLES=ON | |
| cmake --build --preset=conan-release --target ALL_BUILD install -j 8 | |
| env: | |
| CONAN_USER_HOME: c:/cache | |
| CONAN_USER_HOME_SHORT: c:/cache/conan_shortpaths | |
| - name: Test examples | |
| shell: powershell | |
| run: | | |
| Start-Job -Init ([ScriptBlock]::Create("Set-Location '$pwd/build/install/bin'")) -ScriptBlock { .\simple_module.exe asdf 2>&1 > output.txt} | Wait-Job -Timeout 2 | Receive-Job | |
| if (-not $(Select-String -Pattern "Module listening" -Path ./build/install/bin/output.txt)) { throw "Module did not start listening" } | |