Skip to content

Commit

Permalink
ci: Cache fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
xry111 committed Sep 5, 2023
1 parent 1a22b2e commit 08e07a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ jobs:
- name: Untar XML
run: |
tar -C ~/lfs-xml-zh_CN --strip-components=1 -xf ~/lfs-xml-zh_CN/book.tar
- name: Cache Fonts
uses: actions/cache@v3
with:
path: ~/lfs-xml-zh_CN/fonts
key: ${{ hashFiles('~/lfs-xml-zh_CN/noto-cjk-commit', '~/lfs-xml-zh_CN/noto-cjk-commit') }}
- name: Generate Translated Book
run: |
make REV=sysv pdf -C ~/lfs-xml-zh_CN BASEDIR=~/lfs-sysv-zh_CN
Expand Down Expand Up @@ -348,6 +353,11 @@ jobs:
- name: Untar XML
run: |
tar -C ~/lfs-xml-zh_CN --strip-components=1 -xf ~/lfs-xml-zh_CN/book.tar
- name: Cache Fonts
uses: actions/cache@v3
with:
path: ~/lfs-xml-zh_CN/fonts
key: ${{ hashFiles('~/lfs-xml-zh_CN/noto-cjk-commit', '~/lfs-xml-zh_CN/noto-cjk-commit') }}
- name: Generate Translated Book
run: |
make REV=systemd pdf -C ~/lfs-xml-zh_CN BASEDIR=~/lfs-systemd-zh_CN
Expand Down

0 comments on commit 08e07a8

Please sign in to comment.