-
Notifications
You must be signed in to change notification settings - Fork 813
/
.azure-pipelines.yml
58 lines (48 loc) · 1.26 KB
/
.azure-pipelines.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
trigger: none
pr:
branches:
include:
- main
parameters:
- name: static
displayName: Generate Static Fonts
type: boolean
default: true
variables:
- name: runCodesignValidationInjectionBG
value: false
jobs:
- job: build
displayName: Build Font
pool:
vmImage: macOS-latest
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.8'
inputs:
versionSpec: '3.8'
- bash: |
brew install ttfautohint
pip install -r requirements.txt ufolint
displayName: 'Install build dependencies'
- bash: |
ufolint sources/*.ufo
displayName: 'Lint sources'
- ${{ if eq(parameters.static, true) }}:
- bash: |
python ./build.py -S -W
displayName: 'Build variable + static fonts'
- ${{ if eq(parameters.static, false) }}:
- bash: |
python ./build.py -W
displayName: 'Build variable fonts only'
- bash: |
mkdir -p out
cd build
zip -r ../out/CascadiaCode.zip ttf otf woff2
displayName: 'Archive all fonts'
- task: PublishPipelineArtifact@1
displayName: 'Publish archive'
inputs:
targetPath: out
artifact: 'archive'