mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 12:35:48 -05:00
The CI, FreeBSD, nightly, macOS nightly and release workflows pinned craft-fonts b076417, which has no fonts/latin-manifest.txt, so every build warned that it could not embed the tab-title face. They now pin craft-fonts main at 16bbfc3, which adds Noto Sans Condensed SemiBold (storytold/craft-fonts#72), so builds from these workflows draw document tab titles in it. The pin also brings Noto Sans Lao, Noto Sans for eight Indian scripts (Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada and Malayalam) and the Latin catalog. With the new faces a build loads 135 faces instead of 54, and Retype compares the first 96 first. Two faults showed: - Retype: near matching fits a shape with at most the 256 glyphs closest to it in proportion over every face. The dots and periods of the new faces, drawn alike in each family and each named weight, took all 256 places, so a simplified Source Sans 3 period after "no" matched no glyph of Source Sans 3 and was left as an outline. A shape that near matches no glyph of the font of the line before it is now also compared with that font's own 256 closest glyphs, and joins the line when one fits. RetypeIndex::near_matches_in does that lookup. - Tests: six Retype tests added their test font to the global font database and expected Retype to compare it, which it did only while fewer than 96 faces were loaded before it. They now name the font (type.retype's fonts, or live type in the family as #6896 does for of_two_versions_only_the_one_the_name_gives_is_listed), and lines_in_family fails when the family has no match instead of reading another face. all_supplied_craft_font_families_are_registered_without_system_fonts looked up every embedded craft-fonts face in the document font database. The tab-title face is embedded for tab titles only and the database leaves it out (document_fonts), so the test now checks the faces document_fonts lists. docs/mcp.md describes the new near-match step, and docs/ui-parity.md and docs/localization-parity.md describe the new pin. The pin change and the version test fix follow #6896 by @newsbaba24x7.
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
# FreeBSD build and package check in a QEMU VM.
|
|
name: FreeBSD
|
|
|
|
# The VM build is slow, so it runs nightly on main and on pushes to `release`, not on every pull
|
|
# request: a drifted dependency still shows up within a day, and always before a release ships.
|
|
# PRs that change the FreeBSD workflow or packaging itself still run it.
|
|
on:
|
|
push:
|
|
branches: [release]
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/freebsd.yml
|
|
- packaging/freebsd/**
|
|
- packaging/env.sh
|
|
schedule:
|
|
- cron: "17 4 * * *"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: freebsd-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
freebsd:
|
|
# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.
|
|
uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main
|
|
with:
|
|
require-craft-fonts: true
|
|
craft-fonts-ref: 16bbfc3d451fad51971ca3f2a28c1e69e279b67c
|
|
run-package-check: true
|
|
# The test builds of this workspace's largest crates (engine, ui-egui) need more than the
|
|
# VM's 12 GB when two compile at once: the build was killed (exit 137) every night with
|
|
# four jobs and again with two. One rustc at a time; it still uses every core.
|
|
cargo-build-extra-args: "-j 1"
|
|
cargo-test-extra-args: "-j 1"
|