lowRISC / lowRISC/opentitan

[CI] Cache bitstreams on PRs

Open
#31,059 0 comments 0 reactions 2 assignees View on GitHub

@mfnch is already working on this.

Since Aug 19, 2026.

Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

### Description

Use the [github actions cache](https://github.com/actions/cache) to cache and restore bitstreams on PRs.

The plan is to cache bitstreams generated on PRs, such that they can be reused in a subsequent run during code review.
Since the cache is scoped to the key, version, and branch this will only speed up PRs that run repeatedly during code review and will not affect other branches not the bazel cache which will still be used for PRs that don't change RTL.

The cache key will be generated by bazel once the PR https://github.com/lowRISC/opentitan/pull/31041 is merged.

The reference implementation for this is in the [mocha](https://github.com/lowRISC/mocha/blob/32818cb34909922f6aca375d61758ae63aa3e7da/.github/workflows/ci.yml#L131) repository.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.