Skip to content

Commit cc36496

Browse files
committed
Update CI
1 parent db47198 commit cc36496

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ jobs:
77
- uses: actions/checkout@v4
88
- uses: typst-community/setup-typst@v3
99

10-
- name: Get Source Han Serif font
10+
- name: Get fonts
1111
run: |
12+
mkdir fonts
13+
wget https://mirrors.ctan.org/fonts/newcomputermodern/otf/NewCM10-Book.otf -P fonts/
14+
wget https://mirrors.ctan.org/fonts/newcomputermodern/otf/NewCM10-BookItalic.otf -P fonts/
15+
1216
wget https://github.com/adobe-fonts/source-han-serif/releases/download/2.002R/09_SourceHanSerifSC.zip
1317
unzip 09_SourceHanSerifSC.zip
18+
mv OTF/SimplifiedChinese/* fonts
1419
1520
wget https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Caligraphic-Regular.ttf
16-
mv KaTeX_Caligraphic-Regular.ttf OTF/SimplifiedChinese
21+
mv KaTeX_Caligraphic-Regular.ttf fonts
1722
wget https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Caligraphic-Bold.ttf
18-
mv KaTeX_Caligraphic-Bold.ttf OTF/SimplifiedChinese
19-
- run: typst compile main.typ model.pdf --font-path ./OTF/SimplifiedChinese/
23+
mv KaTeX_Caligraphic-Bold.ttf fonts
24+
- run: typst compile main.typ model.pdf --font-path ./fonts/
2025
- uses: actions/upload-artifact@v4
2126
with:
2227
name: model

0 commit comments

Comments
 (0)