forked from PeerDB-io/peerdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
23 lines (22 loc) · 843 Bytes
/
Copy pathaction.yml
File metadata and controls
23 lines (22 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: 'PeerDB genprotos'
description: 'Install buf with local plugins, generate protos and cache'
runs:
using: "composite"
steps:
- name: check cache
id: cache
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: |
./flow/generated
./nexus/pt/src/gen
./ui/grpc_generated
key: ${{ runner.os }}-build-genprotos-${{ hashFiles('buf.gen.yaml', './protos/peers.proto', './protos/flow.proto', './protos/route.proto', './flow/cmd/codegen/*.go') }}
- if: steps.cache.outputs.cache-hit != 'true'
uses: bufbuild/buf-action@fd21066df7214747548607aaa45548ba2b9bc1ff # v1
with:
setup_only: true
github_token: ${{ github.token }}
- if: steps.cache.outputs.cache-hit != 'true'
shell: sh
run: ./generate-protos.sh