File: .azure-pipelines.yml

package info (click to toggle)
fonts-cascadia-code 2102.03-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 28,768 kB
  • sloc: python: 1,949; sh: 12; makefile: 6
file content (58 lines) | stat: -rw-r--r-- 1,293 bytes parent folder | download
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
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'