mirror of
https://github.com/be5invis/Iosevka.git
synced 2026-10-27 16:08:38 +00:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: PR Font Build Validation
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build ${{ matrix.fontName }} font
|
|
if: github.repository == 'be5invis/Iosevka'
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
fontName:
|
|
[
|
|
"Iosevka",
|
|
"IosevkaFixed",
|
|
"IosevkaSlab",
|
|
"IosevkaAile",
|
|
"IosevkaEtoile",
|
|
"IosevkaNoVarTest",
|
|
]
|
|
|
|
steps:
|
|
# Checkout repository into `iosevka` sub directory
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
path: iosevka
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: lts/*
|
|
cache: npm
|
|
cache-dependency-path: iosevka/package-lock.json
|
|
|
|
- name: Install ttfautohint
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends ttfautohint
|
|
|
|
- name: Build Font ${{ matrix.fontName }}
|
|
shell: bash
|
|
working-directory: iosevka
|
|
run: |
|
|
npm install
|
|
npm run build -- contents::${{ matrix.fontName }}
|