build: "Quick Checks" caches protoc between runs

Building our protobuf files requires the protoc tool, which takes a little
while to download and install. Hopefully downloading it out of the GitHub
Actions cache will make it a little faster in the common case where we're
still using the same version as the previous run.
This commit is contained in:
Martin Atkins 2022-04-01 17:56:43 -07:00
parent 42a618f7c1
commit bbf540e0e3

View File

@ -129,6 +129,14 @@ jobs:
exit 1
fi
- name: Cache protobuf tools
uses: actions/cache@v3
with:
path: "tools/protobuf-compile/.workdir"
key: protobuf-tools-${{ hashFiles('tools/protobuf-compile/protobuf-compile.go') }}
restore-keys: |
protobuf-tools-
- name: "Code consistency checks"
run: |
make fmtcheck generate staticcheck exhaustive protobuf