Skip to content

Commit

Permalink
Diff font in main to the last release when running GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
rimas-kudelis committed Oct 9, 2024
1 parent 47b0b9e commit d42cbb6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
- name: Check with FontValidator
run: make fv-test
continue-on-error: true
- name: proof
run: make proof
- name: diff
run: make diff
continue-on-error: true
- name: setup site
run: cp scripts/index.html out/index.html
Expand Down
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,29 @@ proof-jonova: venv build.stamp
proof-jonova-condensed: venv build.stamp
TOCHECK=$$(find fonts/variable -type f -name "JonovaCondensed-*" 2>/dev/null); if [ -z "$$TOCHECK" ]; then TOCHECK=$$(find fonts/ttf -type f -name "JonovaCondensed-*" 2>/dev/null); fi ; . venv/bin/activate; mkdir -p out/proof/JonovaCondensed; diffenator2 proof $$TOCHECK -o out/proof/JonovaCondensed

# The following four targets are likely temporary. They're meant to diffenate the font
# produced from current status of the main branch against Fotonija's last release.
# In future, this could probably be reworked to diff a PR against current parent branch.
diff: diff-jonova diff-jonova-condensed

diff-jonova: venv build.stamp jonova-2.032
TOCHECK=$$(find fonts/variable -type f -name "Jonova-*" 2>/dev/null); \
if [ -z "$$TOCHECK" ]; then TOCHECK=$$(find fonts/ttf -type f -name "Jonova-*" 2>/dev/null); fi; \
. venv/bin/activate; \
mkdir -p out/proof/Jonova; \
diffenator2 diff --imgs --debug-gifs --fonts-before jonova-2.032/Jonova/*.ttf --fonts-after $$TOCHECK --out out/proof/Jonova

diff-jonova-condensed: venv build.stamp
TOCHECK=$$(find fonts/variable -type f -name "JonovaCondensed-*" 2>/dev/null); \
if [ -z "$$TOCHECK" ]; then TOCHECK=$$(find fonts/ttf -type f -name "JonovaCondensed-*" 2>/dev/null); fi; \
. venv/bin/activate; \
mkdir -p out/proof/JonovaCondensed; \
diffenator2 diff --imgs --debug-gifs --fonts-before jonova-2.032/JonovaCondensed/*.ttf --fonts-after $$TOCHECK --out out/proof/JonovaCondensed

jonova-2.032:
curl -L https://github.com/rimas-kudelis/jonova/archive/refs/tags/v2.032.tar.gz -o- | tar -xz
mv "jonova-2.032/Jonova Condensed" jonova-2.032/JonovaCondensed

images: venv $(DRAWBOT_OUTPUT)

%.png: %.py build.stamp
Expand Down

0 comments on commit d42cbb6

Please sign in to comment.