mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-03 08:50:02 -06:00
CodeRabbit on #5202: - AGENTS.md, ATTRIBUTION.md, README.md, docs/architecture.md: without CRAFT_I18N_DIR English spelling falls back to an installed Hunspell English or craft-proof's built-in Moby list, and only pattern hyphenation is off (Bulgarian, Turkish and Russian hyphenate by rule); they said English wasn't spell-checked. (CLAUDE.md carries the same sentence; left for the maintainer, as agents don't edit it.) - NOTICE: craft-i18n's patterns are language-data/<lang>/hyphenation.pat, not en-us.pat, pl.pat, pt.pat, de.pat, it.pat. - docs/spelling-dictionaries.md: the Flatpak's dictionaries folder is ~/.var/app/ai.storyteller.wordcraft/data/wordcraft/dictionaries; the host's folders are outside its sandbox. - printing.yml: the repository checkout doesn't persist credentials. - tests.rs no_language_data: also probes the American/British variant table, so a craft-i18n checkout missing some files skips the dialect tests instead of failing them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
96 lines
3.1 KiB
YAML
96 lines
3.1 KiB
YAML
# Exercise the native print host and all UI tests on PRs; the broad FreeBSD/ARM64 gates
|
|
# stay on their existing nightly/release schedule.
|
|
name: Printing
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'Cargo*'
|
|
- 'craft-i18n.rev'
|
|
- 'apps/wordcraft/**'
|
|
- 'apps/wordcraft-web/**'
|
|
- 'crates/ui-egui/**'
|
|
- '.github/workflows/printing.yml'
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'Cargo*'
|
|
- 'craft-i18n.rev'
|
|
- 'apps/wordcraft/**'
|
|
- 'apps/wordcraft-web/**'
|
|
- 'crates/ui-egui/**'
|
|
- '.github/workflows/printing.yml'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: printing-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
native:
|
|
name: Print (${{ matrix.os }})
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-24.04, windows-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 90
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_INCREMENTAL: '0'
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
# The interface catalogs and craft-proof's Language data come from craft-i18n at the commit in
|
|
# craft-i18n.rev, so these tests build with the same data as the gate (ci.yml).
|
|
- name: Check out craft-i18n
|
|
uses: storytold/craft-common-actions/actions/checkout-craft-i18n@main
|
|
|
|
# The catalogs include CJK interface languages, so the UI tests need the suite's fonts, as in
|
|
# the gate (same commit as ci.yml and release.yml).
|
|
- name: Check out craft-fonts
|
|
uses: storytold/craft-common-actions/actions/checkout-craft-fonts@main
|
|
with:
|
|
ref: b076417b5880bd4154bd22f00695b1d28c6bea83
|
|
|
|
- name: Build with craft-fonts
|
|
shell: bash
|
|
run: |
|
|
echo "CRAFT_FONTS_DIR=$GITHUB_WORKSPACE/craft-fonts" >> "$GITHUB_ENV"
|
|
echo "CRAFT_FONTS_REQUIRED=1" >> "$GITHUB_ENV"
|
|
|
|
- name: Install Linux build and software-rendering dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
pkg-config libxkbcommon-dev libwayland-dev libx11-dev libxcursor-dev libxrandr-dev \
|
|
libxi-dev libgtk-3-dev libfontconfig1-dev libfreetype-dev libvulkan1 mesa-vulkan-drivers
|
|
|
|
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
targets: wasm32-unknown-unknown
|
|
|
|
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
with:
|
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
- name: Formatting
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: Native app and UI Clippy
|
|
run: cargo clippy -p wordcraft -p wordcraft-ui-egui --all-targets --locked -- -D warnings
|
|
|
|
- name: Native app and UI tests
|
|
run: cargo test -p wordcraft -p wordcraft-ui-egui --locked
|
|
|
|
- name: Browser compatibility
|
|
if: runner.os == 'Linux'
|
|
run: cargo check -p wordcraft-web --target wasm32-unknown-unknown --locked
|