Skip to content

Commit 0c5bff0

Browse files
committed
get ready for primetime
1 parent 18064e7 commit 0c5bff0

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

.github/workflows/update_protos.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
name: Update Protos + Open PR
22

33
on:
4-
pull_request:
5-
branches:
6-
- main
74
workflow_dispatch:
85
repository_dispatch:
96
types:
107
- protos-updated
118

129
jobs:
1310
update-protos:
14-
#if: github.repository_owner == 'viamrobotics'
11+
if: github.repository_owner == 'viamrobotics'
1512
runs-on: ubuntu-latest
1613
container:
1714
image: ghcr.io/viamrobotics/canon:amd64
1815
steps:
1916
- uses: actions/checkout@v4
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.
2019
- name: install dependencies
2120
run: |
2221
apt-get update
@@ -41,14 +40,6 @@ jobs:
4140
software-properties-common \
4241
sudo \
4342
wget \
44-
#- name: setup-grpc
45-
#run: |
46-
#git clone https://github.com/Microsoft/vcpkg.git \
47-
#&& cd vcpkg && ./bootstrap-vcpkg.sh && ./vcpkg integrate install \
48-
#&& ./vcpkg install grpc \
49-
#&& ./vcpkg install upb
50-
#- name: setup-openssl
51-
#run: apt-get update && sudo apt-get -y --no-install-recommends install libssl-dev
5243
- uses: MarkusJx/[email protected]
5344
with:
5445
boost_version: 1.81.0
@@ -62,24 +53,17 @@ jobs:
6253
- name: Update buf
6354
run: |
6455
cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON && cmake --build ./build --target update-buf
65-
#run: |
66-
#cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON -DCMAKE_PREFIX_PATH=./vcpkg/installed/x64-linux/share \
67-
#&& cmake --build ./build --target update-buf
6856
env:
6957
BOOST_ROOT: ${{ github.workspace }}/boost/boost
7058
- name: Generate buf
7159
run: |
7260
cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON && cmake --build ./build --target update-static-protos
73-
#run: |
74-
#cmake -B build -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON -DCMAKE_PREFIX_PATH=./vcpkg/installed/x64-linux/share \
75-
#&& cmake --build ./build --target update-static-protos
7661
env:
7762
BOOST_ROOT: ${{ github.workspace }}/boost/boost
7863
- name: cleanup
79-
run: echo $(git status)
80-
#run: rm -rf boost/ && rm -rf vcpkg/
64+
run: rm -rf boost/
8165
- name: Update proto tag
82-
run: echo "${{ github.event.client_payload.tag }}" > src/viam/api/api_proto_tag.lock && echo $(git diff src/viam/api/api_proto_tag.lock)
66+
run: echo "${{ github.event.client_payload.tag }}" > src/viam/api/api_proto_tag.lock
8367
- name: Add + Commit + Open PR
8468
uses: peter-evans/create-pull-request@v3
8569
with:

0 commit comments

Comments
 (0)