Skip to content

Commit

Permalink
Update actions/cache to v4 (#346)
Browse files Browse the repository at this point in the history
### Description

This PR aims to speed up the overall build time by switching cache
action version to v4. The problem with previous version was that post
restore steps were unexpectedly slow. On the new version this does not
seem to be a problem anymore.

### Other changes

None.

### Tested

Ran CI multiple times.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the version of the `actions/cache` used in the GitHub
Actions workflow from `v3` to `v4` for both the node cache and the build
artifacts cache.

### Detailed summary
- Updated `actions/cache` version from `v3` to `v4` for the `Restore
node cache` step.
- Updated `actions/cache` version from `v3` to `v4` for the `Restore
build artifacts cache` step.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
shazarre authored Sep 26, 2024
1 parent 724af5e commit 431c8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
node-version: '18'
cache: 'yarn'
- name: Restore node cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache_node
with:
# We need to cache all the artifacts generated by yarn install+build
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
# We use cache to share the build artifacts between jobs (gh artifacts are too slow...)
# For more context check https://github.com/actions/upload-artifact/issues/199
- name: Restore build artifacts cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache_build_artifacts
with:
# We need to cache all the artifacts generated by yarn install+build
Expand Down

0 comments on commit 431c8c5

Please sign in to comment.