Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to UFR #5

Merged
merged 1 commit into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build font and specimen

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Linux dependencies
run: |
sudo snap install yq
- name: Build font
run: make build
- name: Check with fontbakery
run: make test
continue-on-error: true
- name: Generate proofs
run: make proof
- name: Gather
run: |
mkdir for-gh-pages
mv fontbakery-report.html for-gh-pages
mv proof/* for-gh-pages
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: |
for-gh-pages
- name: Remove temp folder
run: |
rm -rf for-gh-pages
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
*~
venv
build.stamp
proof

# OS generated files #
######################
.DS_Store
*.idlk
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Binary file removed DUMMYFONT/Acme-Regular.ttf
Binary file not shown.
1 change: 0 additions & 1 deletion DUMMYFONT/DESCRIPTION.en_us.html

This file was deleted.

44 changes: 0 additions & 44 deletions DUMMYFONT/FONTLOG.txt

This file was deleted.

16 changes: 0 additions & 16 deletions DUMMYFONT/METADATA.pb

This file was deleted.

95 changes: 0 additions & 95 deletions DUMMYFONT/OFL.txt

This file was deleted.

34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
SOURCES=$(shell yq e '.sources.[] | sub("^","sources/")' sources/config.yaml )
FAMILY=$(shell yq e '.familyName' sources/config.yaml )

help:
@echo "###"
@echo "# Build targets for $(FAMILY)"
@echo "###"
@echo
@echo " make build: Builds the fonts and places them in the fonts/ directory"
@echo " make test: Tests the fonts with fontbakery"
@echo " make proof: Creates HTML proof documents in the proof/ directory"
@echo

build: build.stamp sources/config.yaml $(SOURCES)

venv: venv/touchfile

build.stamp: venv
. venv/bin/activate; gftools builder sources/config.yaml && touch build.stamp

venv/touchfile: requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; pip install -Ur requirements.txt
touch venv/touchfile

test: venv build.stamp
. venv/bin/activate; fontbakery check-googlefonts --html fontbakery-report.html --ghmarkdown fontbakery-report.md $(shell find fonts -type f)

proof: venv build.stamp
. venv/bin/activate; gftools gen-html proof $(shell find fonts/ttf -type f) -o proof

clean:
rm -rf venv
find -iname "*.pyc" -delete
Loading