Skip to content

Commit 89520d0

Browse files
committed
i18n: port Japanese interface proposal to current main (#15)
2 parents 951f552 + 0623b43 commit 89520d0

643 files changed

Lines changed: 138199 additions & 38626 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.coderabbit.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
reviews:
3+
auto_review:
4+
# Dependabot bumps are checked by CI; skip CodeRabbit reviews on them.
5+
ignore_usernames:
6+
- "dependabot[bot]"

‎.config/nextest.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Minimum cargo-nextest for this repository: GHSA-vc25-qg58-w57c is fixed in 0.9.150 and CI
2+
# installs exactly that version, so an older nextest refuses to run (exit 92 REQUIRED_VERSION_NOT_MET).
3+
nextest-version = "0.9.150"

‎.github/dependabot.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
updates:
3+
# Maintain Rust / Cargo dependencies
4+
- package-ecosystem: "cargo"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
time: "06:00"
9+
timezone: "America/New_York"
10+
# Consolidate updates into a single PR rather than one PR per crate
11+
groups:
12+
cargo-dependencies:
13+
patterns:
14+
- "*"
15+
commit-message:
16+
prefix: "chore(deps)"
17+
18+
# Maintain GitHub Actions workflows
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
interval: "daily"
23+
time: "06:00"
24+
timezone: "America/New_York"
25+
groups:
26+
actions:
27+
patterns:
28+
- "*"
29+
commit-message:
30+
prefix: "ci(deps)"

‎.github/workflows/ci.yml‎

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,61 @@
1-
name: ci
1+
name: CI
22

3-
# Quality gates for every push to main and every pull request: rustfmt, clippy (-D warnings),
4-
# tests, asset attribution, crate layering and the wasm32 check — `cargo xtask ci`.
3+
# Quality gates for every push to main and every pull request (`cargo xtask ci`), through the
4+
# suite's shared gate workflow in craft-common-actions.
55
on:
66
push:
77
branches: [main]
88
pull_request:
99
workflow_dispatch:
1010

11-
concurrency:
12-
group: ci-${{ github.ref }}
13-
cancel-in-progress: true
11+
permissions:
12+
contents: read
1413

15-
env:
16-
CARGO_TERM_COLOR: always
17-
# Same craft-fonts commit as release.yml (Latin presentation fonts).
18-
CRAFT_FONTS_REF: 43913056ce82a3fdad0ef69f6b88d1dc922a8104
14+
# A newer push to a PR branch cancels its older run; every push to main runs to the end.
15+
concurrency:
16+
group: ci-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
17+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1918

2019
jobs:
21-
gates:
22-
name: gates (${{ matrix.os }})
23-
strategy:
24-
fail-fast: false
25-
matrix:
26-
# No macOS on PRs or main: the org's 5 macOS slots are kept for release builds, and
27-
# release.yml builds macOS (a failing release is fixed and rebuilt).
28-
os: [ubuntu-latest]
29-
runs-on: ${{ matrix.os }}
20+
# Keep the early manifest preflight separate from the reusable workflow. The shared gate
21+
# also runs with require-craft-fonts: true, so the build script enforces actual required faces.
22+
# Keep this pin identical to gate, freebsd.yml and release.yml.
23+
font-pin:
24+
runs-on: ubuntu-latest
25+
env:
26+
# Same craft-fonts commit as release.yml.
27+
CRAFT_FONTS_REF: 37827adc41fd165f9a9234ac40f94dbad353aa69
3028
steps:
31-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3229
- name: Check out craft-fonts
3330
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3431
with:
3532
repository: storytold/craft-fonts
3633
ref: ${{ env.CRAFT_FONTS_REF }}
3734
path: craft-fonts
38-
- name: Linux build dependencies
39-
if: runner.os == 'Linux'
40-
run: |
41-
sudo apt-get update
42-
sudo apt-get install -y --no-install-recommends \
43-
libasound2-dev libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev
44-
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
45-
with:
46-
components: rustfmt, clippy
47-
targets: wasm32-unknown-unknown
48-
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
49-
with:
50-
key: ci-${{ matrix.os }}
51-
- name: cargo xtask ci
35+
- name: Font pin gate
5236
env:
53-
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
54-
run: cargo xtask ci
37+
# The only pin allowed to predate the reviewed Chinese manifest. It is a sentinel, not
38+
# a proposed future SHA; update it together with all three workflow pins.
39+
PENDING_CRAFT_FONTS_PIN: 43913056ce82a3fdad0ef69f6b88d1dc922a8104
40+
run: |
41+
manifest="$GITHUB_WORKSPACE/craft-fonts/fonts/simplified-chinese-manifest.txt"
42+
if [ -f "$manifest" ]; then
43+
echo "craft-fonts pin carries the reviewed simplified-Chinese manifest."
44+
elif [ "$CRAFT_FONTS_REF" = "$PENDING_CRAFT_FONTS_PIN" ]; then
45+
echo "::warning title=craft-fonts pin pending::The pinned craft-fonts commit has no fonts/simplified-chinese-manifest.txt, so CJK checks may skip. Advance ci.yml, freebsd.yml and release.yml together to the reviewed immutable SHA before claiming shipped Chinese fonts."
46+
else
47+
echo "::error title=craft-fonts pin missing Chinese manifest::CRAFT_FONTS_REF advanced past the known pending pin ($PENDING_CRAFT_FONTS_PIN) but still has no fonts/simplified-chinese-manifest.txt. Update the pin to the reviewed commit that carries it."
48+
exit 1
49+
fi
50+
51+
gate:
52+
needs: font-pin
53+
# Tracks @main so suite-wide CI fixes reach every app without a PR in each repository.
54+
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
55+
with:
56+
# Same craft-fonts commit as release.yml.
57+
craft-fonts-ref: 37827adc41fd165f9a9234ac40f94dbad353aa69
58+
require-craft-fonts: true
59+
packages: >-
60+
libasound2-dev libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev
61+
libgl1-mesa-dev

‎.github/workflows/freebsd.yml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
# (GitHub has no FreeBSD runners). GPU tests skip themselves when the VM has no adapter.
33
name: FreeBSD
44

5+
# The VM build is slow, so it runs nightly on main and on pushes to `release`, not on every pull
6+
# request: a drifted dependency still shows up within a day, and always before a release ships.
7+
# PRs that change the FreeBSD workflow itself still run it.
58
on:
69
push:
7-
branches: [main]
10+
branches: [release]
811
pull_request:
912
paths:
10-
- Cargo.toml
11-
- Cargo.lock
12-
- "**/Cargo.toml"
13-
- "crates/fonts/**"
1413
- .github/workflows/freebsd.yml
14+
schedule:
15+
- cron: "27 2 * * *"
1516
workflow_dispatch:
1617

1718
concurrency:
@@ -26,4 +27,8 @@ jobs:
2627
# 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.
2728
uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main
2829
with:
29-
craft-fonts-ref: 43913056ce82a3fdad0ef69f6b88d1dc922a8104
30+
# Keep identical to ci.yml and release.yml. The shared FreeBSD workflow passes
31+
# CRAFT_FONTS_DIR to its tests but has no CRAFT_FONTS_REQUIRED input yet, so it does not
32+
# qualify the required Chinese input after the pin advances; that gate stays explicitly
33+
# pending in docs/egui-037-migration-plan.md section 5.1.
34+
craft-fonts-ref: 37827adc41fd165f9a9234ac40f94dbad353aa69

‎.github/workflows/house-rules.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: House rules
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- AGENTS.md
8+
- CLAUDE.md
9+
- .github/workflows/house-rules.yml
10+
pull_request:
11+
paths:
12+
- AGENTS.md
13+
- CLAUDE.md
14+
- .github/workflows/house-rules.yml
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
concurrency:
21+
group: house-rules-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
house-rules:
26+
uses: storytold/craft-common-actions/.github/workflows/house-rules.yml@main
27+
with:
28+
rust: true

‎.github/workflows/nix.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Evaluates the Nix flake (no build, about a minute): `nix build` / `nix develop` stop at evaluation
2+
# when Cargo.lock gains something nix/package.nix can't vendor, and nothing else would notice.
3+
name: Nix
4+
5+
on:
6+
push:
7+
branches: [main]
8+
paths: ["flake.nix", "flake.lock", "nix/**", "Cargo.lock", ".github/workflows/nix.yml"]
9+
pull_request:
10+
paths: ["flake.nix", "flake.lock", "nix/**", "Cargo.lock", ".github/workflows/nix.yml"]
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: nix-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
nix:
22+
# 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.
23+
uses: storytold/craft-common-actions/.github/workflows/nix.yml@main

‎.github/workflows/packaging-lint.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,27 @@ jobs:
2121
lint:
2222
# 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.
2323
uses: storytold/craft-common-actions/.github/workflows/packaging-lint.yml@main
24+
25+
windows-install-policy:
26+
timeout-minutes: 10
27+
name: Windows installation policy (no app build)
28+
runs-on: windows-latest
29+
steps:
30+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31+
with:
32+
persist-credentials: false
33+
- name: Install the pinned packaging toolchain
34+
shell: pwsh
35+
run: |
36+
$tools = Join-Path $env:RUNNER_TEMP 'craft-install-policy-wix'
37+
dotnet tool install --tool-path $tools wix --version 5.0.2
38+
if ($LASTEXITCODE -ne 0) { throw 'WiX installation failed.' }
39+
$tools >> $env:GITHUB_PATH
40+
$policy = Get-Content -Raw -LiteralPath packaging/windows/install-policy.json | ConvertFrom-Json
41+
foreach ($extension in @($policy.extensions)) {
42+
& (Join-Path $tools 'wix.exe') extension add -g "WixToolset.$extension.wixext/5.0.2"
43+
if ($LASTEXITCODE -ne 0) { throw "WiX extension $extension installation failed." }
44+
}
45+
- name: Build and check non-executable installer fixtures
46+
shell: pwsh
47+
run: ./packaging/windows/test-install-policy.ps1 -OutputDirectory (Join-Path $env:RUNNER_TEMP 'craft-install-policy-tests')

‎.github/workflows/release.yml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,32 @@ on:
1212

1313
permissions:
1414
contents: write
15+
packages: write
1516

1617
concurrency:
1718
group: release-${{ github.ref }}
1819
cancel-in-progress: false
1920

2021
jobs:
22+
# Regenerates contributors/contributors.json for the release commit; every build bundles it.
23+
credits:
24+
permissions:
25+
contents: read
26+
pull-requests: read
27+
uses: storytold/craft-common-actions/.github/workflows/refresh-contributors.yml@main
2128
release:
29+
needs: credits
2230
# 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.
2331
uses: storytold/craft-common-actions/.github/workflows/release.yml@main
2432
with:
2533
app-name: deckcraft
2634
app-title: DeckCraft
27-
craft-fonts-ref: 43913056ce82a3fdad0ef69f6b88d1dc922a8104
35+
# Keep identical to ci.yml and freebsd.yml. The shared release workflow sets
36+
# CRAFT_FONTS_REQUIRED=1 in its packaging steps, so a pin without the reviewed Chinese
37+
# manifest fails the release instead of silently skipping it.
38+
craft-fonts-ref: 37827adc41fd165f9a9234ac40f94dbad353aa69
2839
version: ${{ inputs.version }}
40+
contributors-artifact: ${{ needs.credits.outputs.artifact-name }}
2941
secrets:
3042
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
3143
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
@@ -41,3 +53,4 @@ jobs:
4153
AZURE_SIGNING_ENDPOINT: ${{ secrets.AZURE_SIGNING_ENDPOINT }}
4254
AZURE_SIGNING_ACCOUNT: ${{ secrets.AZURE_SIGNING_ACCOUNT }}
4355
AZURE_CERT_PROFILE: ${{ secrets.AZURE_CERT_PROFILE }}
56+
LINUX_SIGNING_KEY: ${{ secrets.LINUX_SIGNING_KEY }}

‎.github/workflows/sonarcloud.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: SonarCloud
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: sonarcloud-${{ github.ref }}
14+
# A push to main is the run that publishes coverage; superseded runs there would never finish.
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
16+
17+
jobs:
18+
sonarcloud:
19+
# Tracked at @main so org-wide CI improvements propagate without PR churn.
20+
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
21+
secrets: inherit

0 commit comments

Comments
 (0)