Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bccfec4

Browse files
committed
Fix caching of fonts in CircleCI builds.
The `save_cache` and `restore_cache` entries need to be separate steps, not keys on the `run` step.
1 parent b2f6a7f commit bccfec4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ commands:
3434
3535
fonts-install:
3636
steps:
37+
- restore_cache:
38+
key: fonts-2
3739
- run:
3840
name: Install custom fonts
3941
command: |
4042
mkdir -p ~/.local/share/fonts
4143
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
4244
fc-cache -f -v
43-
save_cache:
44-
key: fonts-2
45-
paths:
46-
- ~/.local/share/fonts/
47-
restore_cache:
48-
key: fonts-2
45+
- save_cache:
46+
key: fonts-2
47+
paths:
48+
- ~/.local/share/fonts/
4949

5050
pip-install:
5151
description: Upgrade pip and setuptools and wheel to get as clean an install as possible

0 commit comments

Comments
 (0)