-
Notifications
You must be signed in to change notification settings - Fork 593
run CI build with caching (bazel, python, go) #718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
path: | | ||
~/.cache/bazelisk | ||
~/.cache/bazel | ||
~/.cache/protoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caches bazelisk downloads, bazel build cache, and protoc download cache.
tags: ${{ env.TEST_TAG }} | ||
- name: Run | ||
go-version: ${{ env.GO_VER }} | ||
cache: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configures go module and go build cache automatically.
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VER }} | ||
cache: 'pip' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caches downloaded pip modules.
Initial build (31m49s): https://github.com/bufbuild/protoc-gen-validate/actions/runs/3397168308/attempts/1
Second build w/ primed cache (2m4s): https://github.com/bufbuild/protoc-gen-validate/actions/runs/3397168308