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

Skip to content

Commit ca1c5d9

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 18e3b2a commit ca1c5d9

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

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

0 commit comments

Comments
 (0)