@@ -14,14 +14,32 @@ jobs:
1414 image : ghcr.io/viamrobotics/canon:amd64
1515 steps :
1616 - uses : actions/checkout@v4
17- - name : setup-grpc
17+ # note (erodkin): these dependencies were cribbed from what we use to build the SDK
18+ # in the release job. Only very cursory effort was made to prune.
19+ - name : install dependencies
1820 run : |
19- git clone https://github.com/Microsoft/vcpkg.git \
20- && cd vcpkg && ./bootstrap-vcpkg.sh && ./vcpkg integrate install \
21- && ./vcpkg install grpc \
22- && ./vcpkg install upb
23- - name : setup-openssl
24- run : apt-get update && sudo apt-get -y --no-install-recommends install libssl-dev
21+ apt-get update
22+ apt-get -y dist-upgrade
23+ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
24+ build-essential \
25+ ca-certificates \
26+ curl \
27+ g++ \
28+ gdb \
29+ gnupg \
30+ gpg \
31+ less \
32+ libboost-all-dev \
33+ libgrpc++-dev \
34+ libprotobuf-dev \
35+ libssl-dev \
36+ ninja-build \
37+ pkg-config \
38+ protobuf-compiler \
39+ protobuf-compiler-grpc \
40+ software-properties-common \
41+ sudo \
42+ wget \
2543 -
uses :
MarkusJx/[email protected] 2644 with :
2745 boost_version : 1.81.0
@@ -34,18 +52,16 @@ jobs:
3452 - uses : arduino/setup-protoc@v1
3553 - name : Update buf
3654 run : |
37- cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON -DCMAKE_PREFIX_PATH=./vcpkg/installed/x64-linux/share \
38- && cmake --build ./build --target update-buf
55+ cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON && cmake --build ./build --target update-buf
3956 env :
4057 BOOST_ROOT : ${{ github.workspace }}/boost/boost
4158 - name : Generate buf
4259 run : |
43- cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON -DCMAKE_PREFIX_PATH=./vcpkg/installed/x64-linux/share \
44- && cmake --build ./build --target update-static-protos
60+ cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON && cmake --build ./build --target update-static-protos
4561 env :
4662 BOOST_ROOT : ${{ github.workspace }}/boost/boost
4763 - name : cleanup
48- run : rm -rf boost/ && rm -rf vcpkg/
64+ run : rm -rf boost/
4965 - name : Update proto tag
5066 run : echo "${{ github.event.client_payload.tag }}" > src/viam/api/api_proto_tag.lock
5167 - name : Add + Commit + Open PR
0 commit comments