Skip to content
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

run CI build with caching (bazel, python, go) #718

Merged
merged 3 commits into from Nov 4, 2022
Merged

Conversation

pkwarren
Copy link
Member

@pkwarren pkwarren commented Nov 4, 2022

@pkwarren pkwarren changed the title experiment with build caching run CI build with caching (bazel, python, go) Nov 4, 2022
@pkwarren pkwarren requested a review from bufdev November 4, 2022 21:56
@pkwarren pkwarren marked this pull request as ready for review November 4, 2022 21:56
path: |
~/.cache/bazelisk
~/.cache/bazel
~/.cache/protoc
Copy link
Member Author

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
Copy link
Member Author

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'
Copy link
Member Author

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.

@pkwarren pkwarren merged commit 6a0acaf into main Nov 4, 2022
@pkwarren pkwarren deleted the pkw/optimize-ci-build branch November 4, 2022 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants