|
1 | 1 | name: Update Protos + Open PR |
2 | 2 |
|
3 | 3 | on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
4 | 7 | workflow_dispatch: |
5 | 8 | repository_dispatch: |
6 | 9 | types: |
7 | 10 | - protos-updated |
8 | 11 |
|
9 | 12 | jobs: |
10 | 13 | update-protos: |
11 | | - if: github.repository_owner == 'viamrobotics' |
| 14 | + #if: github.repository_owner == 'viamrobotics' |
12 | 15 | runs-on: ubuntu-latest |
13 | 16 | container: |
14 | 17 | image: ghcr.io/viamrobotics/canon:amd64 |
15 | 18 | steps: |
16 | 19 | - uses: actions/checkout@v4 |
17 | | - - name: setup-grpc |
| 20 | + - name: install dependencies |
18 | 21 | 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 |
| 22 | + apt-get update |
| 23 | + apt-get -y dist-upgrade |
| 24 | + DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ |
| 25 | + build-essential \ |
| 26 | + ca-certificates \ |
| 27 | + curl \ |
| 28 | + g++ \ |
| 29 | + gdb \ |
| 30 | + gnupg \ |
| 31 | + gpg \ |
| 32 | + less \ |
| 33 | + libboost-all-dev \ |
| 34 | + libgrpc++-dev \ |
| 35 | + libprotobuf-dev \ |
| 36 | + libssl-dev \ |
| 37 | + ninja-build \ |
| 38 | + pkg-config \ |
| 39 | + protobuf-compiler \ |
| 40 | + protobuf-compiler-grpc \ |
| 41 | + software-properties-common \ |
| 42 | + sudo \ |
| 43 | + 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 |
25 | 52 | - uses: MarkusJx/[email protected] |
26 | 53 | with: |
27 | 54 | boost_version: 1.81.0 |
|
34 | 61 | - uses: arduino/setup-protoc@v1 |
35 | 62 | - name: Update buf |
36 | 63 | 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 |
| 64 | + 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 |
39 | 68 | env: |
40 | 69 | BOOST_ROOT: ${{ github.workspace }}/boost/boost |
41 | 70 | - name: Generate buf |
|
0 commit comments