Welcome to mirror list, hosted at ThFree Co, Russian Federation.

generate.yml « workflows « .github - github.com/flipperdevices/flipperzero-protobuf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7cb0185c04b98a8b34f45e058ab898daee8287df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: 'Generate protobuf sources'

on: 
  push:

jobs:
  generate:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout flipperzero-protobuf
        uses: actions/checkout@v2

      - name: Checkout nanopb
        uses: actions/checkout@v2
        with:
          repository: nanopb/nanopb
          path: nanopb

      - name: Setup python
        uses: actions/setup-python@v2

      - name: Setup protobuf
        run: sudo apt-get -y install protobuf-compiler && python -m pip install --upgrade python3-protobuf==2.5.0 protobuf==3.20.1 grpcio-tools==1.47.0 grpcio==1.47.0 

      - name: Generate sources
        run: python3 nanopb/generator/nanopb_generator.py -q -I . -D /tmp *.proto