代码拉取完成,页面将自动刷新
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'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。