mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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:
parent
42a618f7c1
commit
bbf540e0e3
8
.github/workflows/checks.yml
vendored
8
.github/workflows/checks.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user