mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-30 10:13:56 +01:00
ui-egui's build.rs reads the optional craft-fonts input (CRAFT_FONTS_DIR, per craft-fonts' docs/integration.md) and embeds the Noto Sans faces for the nine Indian scripts (Deva, Beng, Guru, Gujr, Orya, Taml, Telu, Knda, Mlym; ~5 MB) on every target. The theme appends them after the system faces, so desktop rendering is unchanged where a system face exists and the web build, which has no system fonts, draws and shapes Indian text. Language::script() names each interface's script; the web build follows the browser's language when the build can render it. CI checks the embedded faces against a pinned craft-fonts commit (the Noto Sans Indian faces, storytold/craft-fonts#21): they draw and shape every script with no system face, and the web build compiles with them. FreeBSD and release workflows pin the same commit. A plain build is unchanged (empty table, same tests pass).
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches: [release]
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: "Version override for a test run, e.g. 0.2.0-rc.1 (empty: Cargo.toml)"
|
|
type: string
|
|
default: ""
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: release-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
release:
|
|
# 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/release.yml@main
|
|
with:
|
|
app-name: gridcraft
|
|
app-title: GridCraft
|
|
craft-fonts-ref: d47f68570a43b364afcd832d00c297a9edea6932
|
|
version: ${{ inputs.version }}
|
|
secrets:
|
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
|
|
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
|