-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(ci): add support to cache tools in CI #278
Conversation
Signed-off-by: Vibhu Prashar <vibhu.sharma2929@gmail.com>
@@ -38,6 +38,9 @@ runs: | |||
username: ${{ inputs.registry_login }} | |||
password: ${{ inputs.registry_token }} | |||
|
|||
- name: Install all tools | |||
uses: ./.github/tools-cache |
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.
Just a thought, perhaps we should move all actions to actions
id: tools-cache | ||
with: | ||
path: ./tmp/bin | ||
key: ${{ runner.os }}-tools-${{ hashFiles('./.github/tools-cache') }} |
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.
We need to may be hash hack/tools.sh
instead. What ObO does is to create a '.github/tools` file see: https://github.com/rhobs/observability-operator/blob/main/.github/tools
The hash of that file is used to check of new binaries need to be downloaded.
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.
We need a file that can be hashed. I think using hacks/tools.sh
may be sufficient even if that means any changes to tools.sh
will result in binaries bring downloaded again. Or make tools.sh write the .github/tools
files like ObO
@vprashar2929 this got closed automatically because the branch was deleted. Can you please create a PR from your fork? |
This PR fixes issue #203
CI runs:
Cache: https://github.com/vprashar2929/kepler-operator/actions/caches
Install tools: https://github.com/vprashar2929/kepler-operator/actions/runs/6529594381/job/17727500939#step:4:6
Sample run: https://github.com/vprashar2929/kepler-operator/actions/runs/6529594381