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

Skip to content

Commit 0270088

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 83c0924 commit 0270088

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
@@ -36,18 +36,18 @@ commands:
3636
fonts-install:
3737
description: Install custom fonts
3838
steps:
39+
- restore_cache:
40+
key: fonts-2
3941
- run:
4042
name: Install custom fonts
4143
command: |
4244
mkdir -p ~/.local/share/fonts
4345
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
4446
fc-cache -f -v
45-
save_cache:
46-
key: fonts-2
47-
paths:
48-
- ~/.local/share/fonts/
49-
restore_cache:
50-
key: fonts-2
47+
- save_cache:
48+
key: fonts-2
49+
paths:
50+
- ~/.local/share/fonts/
5151

5252
pip-install:
5353
description: Upgrade pip and setuptools and wheel to get as clean an install as possible

0 commit comments

Comments
 (0)