-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 1.97 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches: [main]
env:
CASCADIA_CODE_VERSION: 2111.01
NERD_FONTS_VERSION: cf49618ac2c0a994a99231b6117de212285f9f82
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
font:
- CascadiaCode-Bold
- CascadiaCode-BoldItalic
- CascadiaCode-ExtraLight
- CascadiaCode-ExtraLightItalic
- CascadiaCode-Italic
- CascadiaCode-Light
- CascadiaCode-LightItalic
- CascadiaCode-Regular
- CascadiaCode-SemiBold
- CascadiaCode-SemiBoldItalic
- CascadiaCode-SemiLight
- CascadiaCode-SemiLightItalic
- CascadiaMono-Bold
- CascadiaMono-BoldItalic
- CascadiaMono-ExtraLight
- CascadiaMono-ExtraLightItalic
- CascadiaMono-Italic
- CascadiaMono-Light
- CascadiaMono-LightItalic
- CascadiaMono-Regular
- CascadiaMono-SemiBold
- CascadiaMono-SemiBoldItalic
- CascadiaMono-SemiLight
- CascadiaMono-SemiLightItalic
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
repository: ryanoasis/nerd-fonts
ref: ${{env.NERD_FONTS_VERSION}}
- run: sudo apt-get update && sudo apt-get -yf install fontforge
- run: |
curl -LSsO https://github.com/microsoft/cascadia-code/releases/download/v$CASCADIA_CODE_VERSION/CascadiaCode-$CASCADIA_CODE_VERSION.zip
unzip CascadiaCode-$CASCADIA_CODE_VERSION.zip
- env:
FONT: ${{matrix.font}}
run: |
fontforge -script font-patcher -c otf/static/$FONT.otf
fontforge -script font-patcher -sc otf/static/$FONT.otf
- name: Upload fonts
uses: actions/upload-artifact@v4
with:
name: ${{matrix.font}}_${{env.CASCADIA_CODE_VERSION}}_${{env.NERD_FONTS_VERSION}}
path: ./*.otf