Skip to content

Commit 19ba7ac

Browse files
OneSlipsclaude
andcommitted
GPU-FULL: merge main (e142e2f)
Conflicts: store.rs, tests_export.rs and tests_folder_drop.rs take main's form of the same Windows fixes; detail.rs keeps main's pixel-snapped image rect and draws `tex.id()` (a view may show a GPU-resident texture). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 parents 87e1b08 + e142e2f commit 19ba7ac

250 files changed

Lines changed: 15729 additions & 1840 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]"

‎.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/freebsd.yml‎

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
# Builds and tests the workspace on FreeBSD, inside a FreeBSD VM on a Linux runner
2-
# (GitHub has no FreeBSD runners). GPU tests skip themselves when the VM has no adapter.
1+
# FreeBSD build and package check in a QEMU VM.
32
name: FreeBSD
43

54
on:
65
push:
76
branches: [main]
7+
paths:
8+
- ".github/workflows/freebsd.yml"
9+
- "packaging/freebsd/**"
10+
- "Cargo.toml"
11+
- "Cargo.lock"
12+
- "crates/**"
813
pull_request:
14+
branches: [main]
915
paths:
10-
- Cargo.toml
11-
- Cargo.lock
12-
- "**/Cargo.toml"
13-
- .github/workflows/freebsd.yml
16+
- ".github/workflows/freebsd.yml"
17+
- "packaging/freebsd/**"
18+
- "Cargo.toml"
19+
- "Cargo.lock"
20+
- "crates/**"
1421
workflow_dispatch:
1522

1623
concurrency:
@@ -22,34 +29,8 @@ permissions:
2229

2330
jobs:
2431
freebsd:
25-
name: FreeBSD 14 (build + test)
26-
runs-on: ubuntu-latest
27-
timeout-minutes: 300
28-
steps:
29-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30-
# Optional font build input, so the Japanese font tests run (they skip without it).
31-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32-
with:
33-
repository: storytold/craft-fonts
34-
ref: 3d9ab3a132ed0eff457e424226a435a901da30d3
35-
path: craft-fonts
36-
- name: Build and test in a FreeBSD VM
37-
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc # v1.5.9
38-
with:
39-
release: "14.3"
40-
usesh: true
41-
cpu: 4
42-
mem: 12288
43-
# Nothing to bring back; copying the target dir out of the VM fails on large builds.
44-
copyback: false
45-
prepare: |
46-
pkg install -y git curl pkgconf cmake python3 libxkbcommon wayland libX11 libXcursor libXrandr libXi libxcb mesa-libs vulkan-loader gtk3 fontconfig freetype2 alsa-lib
47-
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
48-
run: |
49-
. "$HOME/.cargo/env"
50-
# The checkout is synced in under another owner; let tests that call git read it.
51-
git config --global --add safe.directory "*"
52-
rustc --version
53-
export CRAFT_FONTS_DIR="$PWD/craft-fonts" CRAFT_FONTS_REQUIRED=1
54-
CARGO_PROFILE_DEV_DEBUG=0 cargo build --workspace --all-targets --locked
55-
CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked
32+
# 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.
33+
uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main
34+
with:
35+
require-craft-fonts: true
36+
craft-fonts-ref: a71c20e30af613287c504f7e685ca8fad77752bc

‎.github/workflows/nix.yml‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
jobs:
21-
eval:
22-
runs-on: ubuntu-latest
23-
timeout-minutes: 15
24-
steps:
25-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26-
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
27-
- name: nix flake check --no-build
28-
run: nix flake check --no-build --all-systems
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: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Quick checks for the release pipeline (no Rust build): workflow syntax, packaging
2-
# shell/PowerShell scripts, and the Linux desktop/AppStream/Flatpak metadata (seconds), plus a
3-
# Windows job that builds and installs throwaway per-user MSI probes for the install-folder
4-
# searches (a few minutes).
1+
# Quick static checks for the release pipeline (seconds, no Rust build): workflow syntax,
2+
# packaging shell/PowerShell scripts, and the Linux desktop/AppStream/Flatpak metadata.
53
name: Packaging lint
64

75
on:
@@ -21,64 +19,10 @@ concurrency:
2119

2220
jobs:
2321
lint:
24-
timeout-minutes: 15
25-
runs-on: ubuntu-latest
26-
env:
27-
ACTIONLINT_VERSION: 1.7.12
28-
steps:
29-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30-
- name: Install tools
31-
run: |
32-
sudo apt-get update
33-
sudo apt-get install -y --no-install-recommends shellcheck desktop-file-utils appstream libxml2-utils python3-yaml
34-
curl -fsSL "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" \
35-
| tar -xz -C "$RUNNER_TEMP" actionlint
36-
- name: actionlint
37-
run: |
38-
"$RUNNER_TEMP/actionlint" -color
39-
- name: shellcheck
40-
run: shellcheck packaging/*.sh packaging/*/*.sh
41-
- name: PowerShell
42-
shell: pwsh
43-
run: |
44-
foreach ($f in Get-ChildItem packaging/windows/*.ps1) {
45-
$errors = $null
46-
[System.Management.Automation.Language.Parser]::ParseFile($f.FullName, [ref]$null, [ref]$errors) | Out-Null
47-
if ($errors) { $errors | ForEach-Object { Write-Output "::error file=$($f.Name)::$_" }; exit 1 }
48-
Write-Output "ok $($f.Name)"
49-
}
50-
- name: XML, desktop entry, AppStream, Flatpak manifest
51-
run: |
52-
xmllint --noout packaging/windows/lightcraft.wxs packaging/macos/*.plist* packaging/linux/*.xml*
53-
# Windows Installer needs Icon ids ending in .ico or .exe, or shortcuts show a blank icon.
54-
if grep -oE '<Icon Id="[^"]*"' packaging/windows/lightcraft.wxs | grep -vE '\.(ico|exe)"$'; then
55-
echo "::error::Icon Id must end in .ico or .exe"; exit 1
56-
fi
57-
# The interactive installer asks where to install and ends on a completion page (issues #18, #399).
58-
for want in '<UIRef Id="LightcraftUI" />' 'Value="InstallDirDlg"' '<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />' \
59-
'Key="Software\LightCraft" Name="InstallFolder"' 'Value="LaunchLightcraft"'; do
60-
grep -qF "$want" packaging/windows/lightcraft.wxs || { echo "::error::lightcraft.wxs lost: $want"; exit 1; }
61-
done
62-
# The completion page the Publish events point at must actually exist: a Publish alone
63-
# does not pull the dialog fragment into the MSI, and without the DialogRef the
64-
# installer finishes silently (issues #790, #892).
65-
grep -qF '<DialogRef Id="ExitDialog" />' packaging/windows/lightcraft.wxs \
66-
|| { echo "::error::ExitDialog is not referenced; installs and removes end without a completion dialog"; exit 1; }
67-
desktop-file-validate packaging/linux/ai.storyteller.lightcraft.desktop
68-
sed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' packaging/linux/ai.storyteller.lightcraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.lightcraft.metainfo.xml"
69-
appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.lightcraft.metainfo.xml"
70-
python3 - <<'EOF'
71-
import yaml
72-
src = yaml.safe_load(open("packaging/linux/flatpak/ai.storyteller.lightcraft.yml"))
73-
bundle = yaml.safe_load(open("packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml"))
74-
for m in (src, bundle):
75-
assert m["id"] == "ai.storyteller.lightcraft" and m["command"] == "lightcraft", m["id"]
76-
for key in ("runtime", "runtime-version", "sdk", "finish-args"):
77-
assert src[key] == bundle[key], f"Flatpak manifests disagree on {key}: {src[key]} vs {bundle[key]}"
78-
print("Flatpak manifests ok")
79-
EOF
80-
- name: FreeBSD tarball layout (stub binaries)
81-
run: bash packaging/freebsd/package.sh --dry-run
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/packaging-lint.yml@main
24+
with:
25+
extra-checks-script: packaging/check-app-specific.sh
8226

8327
windows-install-folder:
8428
runs-on: windows-latest

0 commit comments

Comments
 (0)