RSDK-11439 — Avoid hardcoding fields for protos strings (things like types response.source_name and response. mime_type) #537
Workflow file for this run
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build-module-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: choco install -y conan git | |
| - name: Set up python/conan | |
| shell: powershell | |
| # Powershell will not exit on error without the line below...highly vexing. | |
| # I would love to find out that there is a better way to do this. | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
| refreshenv | |
| conan profile detect | |
| conan remote add viamconan https://viam.jfrog.io/artifactory/api/conan/viamconan --index 0 | |
| env: | |
| CONAN_USER_HOME: c:/cache | |
| CONAN_USER_HOME_SHORT: c:/cache/conan_shortpaths | |
| - name: Build package and module | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
| refreshenv | |
| conan create . -o:a "viam-cpp-sdk/*:shared=False" -s:a build_type=Release -s:a compiler.cppstd=17 --build=missing -cc core:non_interactive=True | |
| env: | |
| CONAN_USER_HOME: c:/cache | |
| CONAN_USER_HOME_SHORT: c:/cache/conan_shortpaths | |
| build-module-nix: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| - os: ubuntu-22.04 | |
| container: | |
| image: ghcr.io/viamrobotics/rdk-devenv:amd64 | |
| options: --platform linux/amd64 | |
| - os: ubuntu-22.04-arm | |
| container: | |
| image: ghcr.io/viamrobotics/rdk-devenv:arm64 | |
| options: --platform linux/arm64 | |
| runs-on: ${{ matrix.os }} | |
| container: ${{ matrix.container }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install deps (mac) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install python@3.11 | |
| - name: Install deps (linux) | |
| if: startsWith(matrix.os, 'ubuntu') | |
| run: | | |
| sudo apt update -y | |
| apt upgrade -y | |
| apt install -y cmake python3.11 python3.11-venv wget | |
| - name: Set up python/conan | |
| run: | | |
| python3 -m venv venv && . ./venv/bin/activate | |
| python3 -m pip install conan | |
| conan profile detect | |
| conan remote add viamconan https://viam.jfrog.io/artifactory/api/conan/viamconan --index 0 | |
| - name: Build package and module | |
| run: | | |
| . ./venv/bin/activate | |
| conan create . -o:a "viam-cpp-sdk/*:shared=False" -s:a build_type=Release -s:a compiler.cppstd=17 --build=missing \ | |
| -cc core:non_interactive=True |