Add a workflow to validate Iosevka build (#2228)
This commit is contained in:
parent
8db9ca94d0
commit
13ebde23fa
1 changed files with 38 additions and 0 deletions
38
.github/workflows/pr-build-validation.yml
vendored
Normal file
38
.github/workflows/pr-build-validation.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
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", "IosevkaSlab", "IosevkaAile", "IosevkaEtoile"]
|
||||
|
||||
steps:
|
||||
# Checkout repository into `iosevka` sub directory
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: iosevka
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
|
||||
- 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 -- ttf::${{ matrix.fontName }}
|
Loading…
Add table
Add a link
Reference in a new issue