actions / actions/toolkit

Is it possible to use cache service URL as a HTTP cache?

Open
#547 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cache enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement

It would be nice if caching could be used as an HTTP service. Modern build systems like Gradle, Bazel, Pants can use a remote cache to avoid building the same tasks across different builds.

The current @actions/cache allows to cache files, however, there's no way to fetch data on demand, and it is hard to make incremental updates to the cache.

Can the HTTP cache service be exposed to the build scripts? For instance, read-only for pull-requests, and read-write for branch-based builds.

Additional information

See https://cirrus-ci.org/guide/writing-tasks/#http-cache

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the @actions/cache behavior and the Cirrus CI HTTP-cache reference linked in the issue. Define how the cache service would be exposed to build scripts and how read-only pull-request access differs from read-write branch access; done means the requested on-demand and incremental cache use cases are supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.