Commit c4d0ee8
authored
chore: store build cache for nextjs (solana-foundation#529)
## Description
This PR adds caching for nextjs into CI
## Type of change
- [x] Other (please describe): CI improvement
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have added tests that prove my fix/feature works
- [x] All tests pass locally and in CI
- [x] CI/CD checks pass
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Adds caching to Next.js builds in CI workflow to improve build times
by storing dependencies and build artifacts.
>
> - **CI Improvement**:
> - Adds caching to `ci.yaml` for Next.js builds using
`actions/cache@v4`.
> - Caches `~/.pnpm-store` and `.next/cache` directories.
> - Cache key includes OS, `package-lock.json`, and TypeScript files
hash.
> - Adds restore-keys for partial cache hits.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=solana-foundation%2Fexplorer&utm_source=github&utm_medium=referral)<sup>
for bde26eb. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent c9a34d3 commit c4d0ee8
3 files changed
+30
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
32 | 52 | | |
33 | 53 | | |
34 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 121 | | |
134 | | - | |
| 122 | + | |
135 | 123 | | |
136 | 124 | | |
137 | 125 | | |
| |||
0 commit comments