101 Commits

Author SHA1 Message Date
FredApps 91aed4b9ca Merge pull request #9063 from storytold/ci/windows-lean-tests
ci: trial: Windows tests only what is Windows-specific, through nextest
2026-12-02 20:59:16 +01:00
FredApps b0bb861807 CI: compile each macOS release architecture on a separate runner (#9075)
The v0.23.2 macOS job compiled Apple Silicon and Intel in series on one
macos-15 runner; the Build, sign, notarize step took about 3 hours 2
minutes (run 46835450051). macos-split-build: true compiles each
architecture on its own runner, then package.sh --skip-build lipos,
signs and notarizes the prebuilt pdfcraft and pdfcraft-cli binaries.

Fixes #9074.
2026-12-02 19:35:43 +01:00
FredApps 5a9749b257 ci: drop rust-lld from the Windows gate (#9062)
A same-machine comparison did not finish within its time limit, and the cold runs show no gain
(80.5 minutes of build with it against 83.9 without), so it is not kept.
2026-12-02 19:47:51 +07:00
FredApps 910760ffd6 ci: Windows tests only what is Windows-specific, through nextest and rust-lld (#9062)
Windows runs the crates with cfg(windows) code or tests, as Ubuntu does, with nextest. The 23 crates
without any, xtask, pdfcraft-web and the OCR worker stay on Ubuntu (cargo xtask ci runs them).
The Windows link step uses rust-lld. The warm leg builds exactly what the gate runs.
2026-12-02 10:52:19 +01:00
FredApps 28e8f2a22a ci: Windows gets its own gate call that warms and saves its dependency cache (#9054)
The Windows gate has no dependency cache, so every Windows run compiles all 741 crates cold.
A `cache warm (windows-latest)` leg now builds the tests and saves the entry as soon as the build
succeeds, so a main whose Windows tests fail still seeds it. The call has a 120-minute limit for a
cold run. cache-prune.yml deletes an entry once a newer one of its family replaces it.
2026-12-02 09:03:52 +01:00
FredApps 8636becdec ci: skip Windows clippy and debug info so a cold-cache Windows gate reaches its tests
Clippy runs on Linux in cargo xtask ci, and its lints don't differ by platform.
Debug info for every dependency made a cold-cache Windows gate spend its 90
minutes compiling (run 46775764634), so cargo test never started.

Closes #9032
2026-12-02 10:58:47 +07:00
Codex fde07f1374 Include the tested desktop executable in startup coverage 2026-11-30 17:28:27 +01:00
Codex da81ff6e0a Install the X11 keyboard runtime for the desktop startup checks 2026-11-30 16:25:30 +01:00
Codex 653c335a9c Verify desktop startup stages reach the log while the window is open 2026-11-30 14:52:00 +01:00
Codex 6caa67dbbd ci: use the standard macOS runner for PdfCraft releases 2026-11-30 03:15:47 +01:00
Dylan M. Taylor 984a6dd3db nightly: enable 08:00 UTC schedule and automatic signer dispatch (#8680) 2026-11-29 17:41:47 -05:00
Dylan M. Taylor 566a53a857 ci(sonarcloud): give each main commit its own concurrency group (#8678) 2026-11-29 15:57:59 -05:00
Dylan M. Taylor b385ac0bb2 chore(nightly): pin producer_workflow_id to 434362399 (#8651) 2026-11-29 01:09:55 -05:00
Dylan M. Taylor be459f88d3 feat(nightly): onboard PdfCraft to signed two-stage nightly releases (#8643)
* feat(nightly): onboard PdfCraft to signed two-stage nightly releases

* chore: update Cargo.lock for rfd dependency in pdfcraft app

* chore: retrigger CI checks

* fix(nightly): enable Linux package_formats (including Flatpak) in signing policy

* fix(nightly): fix unused import, attribute nightly icons, and wire -Nightly/-BuildOnly in package.ps1

* test(nightly): exclude packaging/** from coverage and add nightly bootstrap unit tests
2026-11-29 01:09:39 -05:00
Dylan M. Taylor 455673e9d3 ci: notify artcraft-services on release state changes (#8509)
* ci: notify artcraft-services on release state changes

* ci: pass only the dispatch token to the notify-services workflow

secrets: inherit hands the called workflow every repository secret, including
the signing credentials. The reusable workflow only reads
ARTCRAFT_SERVICES_DISPATCH_TOKEN, so map just that one.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-27 15:19:44 -05:00
FredApps e7860b9a38 Merge pull request #1021 from storytold/ci-speedup-nightly-platform-checks
CI: FreeBSD and Windows ARM64 nightly and on release, not per PR
2026-11-26 19:37:29 +01:00
FredApps 5a1f0efe3a Merge main into #1021 2026-11-26 22:08:13 +07:00
FredApps 0358f93e18 Merge main into #1218 2026-11-26 21:50:40 +07:00
Dylan M. Taylor b192e36ff0 revert: restore scheduled release.yml dry-run on main (#8158) 2026-11-23 14:45:32 -05:00
Dylan M. Taylor 5cf56ee227 ci(release): publish scheduled nightly prereleases (#8155) 2026-11-23 13:17:27 -05:00
Dylan M. Taylor b56f92f298 ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#8144) 2026-11-23 09:34:10 -05:00
aiongg 3f3b3e634a Adopt the shared AGENTS.md (RFC-0072) (#7937)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Point removed AGENTS.md section references at the shared standards
2026-11-20 18:10:17 +07:00
FredApps ec7e4342f7 ci: allow native gate cleanup to finish 2026-11-18 20:15:17 +01:00
FredApps 961bda29f1 CI: preserve font notice regressions through shared gate (#7218) 2026-11-14 22:26:12 +01:00
FredApps e2c90c33cb sonarcloud: use the craft-fonts commit the gate and the release use 2026-11-13 20:53:28 +01:00
FredApps 616c71492d Merge branch 'main' into fix/sonar-fonts-quality-gate 2026-11-13 20:43:14 +01:00
FredApps fd4d60ff4a CI: use the shared git-sources check (#7042)
ci.yml ran its own copy of the git-sources job; it now calls
craft-common-actions git-sources.yml, under the same full-ci label rule.
2026-11-13 14:04:39 +01:00
FredApps 8c99ec4e08 CI: nightly release dry run (#7040)
release.yml also runs nightly on main with craft-common-actions' dry-run: every release build
except macOS, with nothing signed, pushed or drafted. Breakage that only the release build hits
(riscv64, Flatpak, FreeBSD, packaging) then shows up the next morning instead of on release
day, as it did on 11 Nov 2026.
2026-11-11 23:04:31 +01:00
Dylan M. Taylor 2b65ab000b ci: use StepSecurity's maintained actions (#7026)
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
2026-11-11 15:20:18 -05:00
Dylan M. Taylor 619a239ceb ci: run Harden-Runner on every job (#7003)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:12:27 -05:00
FredApps 1be1cfa6ed CI: the workspace's tests on macOS each night (and on demand) (#6921)
Pull requests and main run Linux and Windows only; release.yml builds and signs the macOS app
without running the tests, so macOS-only failures went unseen. On 10 Nov 2026 a hand-started run
found three (two print tests and a bates test, fixed in #6905 and #6913) plus one more
(min_window, fixed separately). One macos-latest leg a night, through the shared gate.
2026-11-10 22:13:16 +01:00
Luis f841666d5f Release: refresh contributor credits for each release (#6487) (#6488)
About > Contributors still showed an old snapshot, because nothing
regenerated contributors/contributors.json before a release. Opt in to
the shared refresh from craft-common-actions: a read-only credits job
regenerates the snapshot for the release commit, and the shared release
workflow installs it before every source build. The snapshot is not
committed back.
2026-11-08 02:22:15 +01:00
FredApps 81b0833b24 Copy the shared house rules into AGENTS.md.
The blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. CLAUDE.md imports AGENTS.md. The house-rules workflow checks the copy.
2026-11-06 11:50:02 +01:00
Dylan M. Taylor d22641a875 Pass the Linux signing key to the release workflow (#6200) 2026-11-04 17:44:52 -05:00
Dylan M. Taylor 47f42ba07b ci: grant packages write permission to release workflow 2026-10-31 23:43:03 -04:00
Dylan M. Taylor 834a4daf9c CI: workflows only call craft-common-actions at @main (#5378)
AGENTS.md (and CLAUDE.md where present) gets a CI workflows section: workflows only call
craft-common-actions at @main, with no other jobs; feature and fix PRs don't touch CI and
link or open a craft-common-actions issue (a PR only for a small fix that is safe for
every app and does not increase CI time); legacy jobs
aren't added to and move only as their own task, staying until a shared workflow runs them.

windows-arm64.yml moves from its SHA pin to @main. The pinned revision is on
craft-common-actions main and the workflow (and the actions it calls) is identical
there, so nothing changes in behaviour.
2026-10-29 22:10:15 -04:00
aiongg dfb74c7990 ci: use storytold/craft-common-actions windows-arm64 workflow 2026-10-27 20:52:54 +00:00
Jeremy c1670d0aa5 fix(installer): keep the desktop shortcut on a machine-wide update; harden install-policy checks 2026-10-27 12:01:39 +00:00
Jeremy c39a0f3658 fix(installer): address scope and ARM64 review feedback 2026-10-27 12:01:39 +00:00
Jeremy 32df17722c feat(installer): default to a per-user ArtCraft folder 2026-10-27 12:01:39 +00:00
skylar 2a3cb9dcb7 ci: require nextest 0.9.150
Use the fixed release for GHSA-vc25-qg58-w57c.
2026-10-26 14:13:01 -06:00
skylar taylor-barrick e90f7882f1 Migrate PdfCraft to egui 0.37 (#4591)
* Record successful PdfCraft web application check

* E21: bound startup requests and validate font and license inputs

* E21: separate pending control completion and gesture regression phases

* M-egui037: enforce control admission and per-family font notices

* M-egui037: qualify capture fixes and document migration behavior

* egui-037: identify current and historical qualification results
2026-10-25 14:30:31 -04:00
FredApps 1a502a4b4d fix(ci): use pinned fonts and await Sonar quality gate 2026-10-24 11:37:44 +02:00
cyfung1031 5dc7f536c6 M0: keep independent CI gates running after failures
Rebased onto main, where the CI phases moved from ci.yml steps into `cargo xtask ci` (run by the shared gate workflow) and tests already run with --no-fail-fast.

- `cargo xtask ci` runs every step even after one fails, then reports each failing step and fails.
- The FreeBSD workflow passes --no-fail-fast to cargo test.
2026-10-24 00:03:16 +00:00
Dylan M. Taylor a2ec27b477 ci(sonar): don't cancel superseded runs on main, so coverage is published (#4321) 2026-10-23 17:06:26 -04:00
Dylan M. Taylor aea5e78e66 release: the git-sources gate moves into craft-common-actions (storytold/craft-common-actions#78) (#4292)
The check is shared at release.yml@main now; keep only the reusable call.
2026-10-23 14:41:20 -04:00
aiongg d1756e487d CI: shared gate workflow; nightly fuzzing in its own workflow (#4270)
* CI: the shared gate workflow; nightly fuzzing in fuzz.yml

* CI: run the gate now that the shared workflow is on craft-common-actions main

* CI: adding full-ci to an open PR runs the gate; fuzz checkout keeps no token
2026-10-23 14:02:43 -04:00
aiongg 487907adfb fix(links): resolve remote document paths with craft-docpath's resolve_absolute (#3730)
* fix(links): use resolve_absolute for remote document paths

* fix(ui): refuse output file names that end in a dot or a space

* ci: check that git dependencies come from storytold

* ci: release only with git dependencies from storytold

* ci: check git dependency sources on a locked, parsed Cargo.lock

The git-sources step in ci.yml and release.yml fails when Cargo.lock is
missing, when .cargo/config.toml replaces or patches a source, when
Cargo.lock is out of date with the manifests (cargo metadata --locked),
and when any package source parsed from Cargo.lock as TOML is a git
source outside github.com/storytold/. A grep on Cargo's usual spelling
missed single-quoted strings and stale lockfiles.

* fix(links): a Windows path on Unix is refused, not reported as needing a source

resolve_remote_document_path reported MissingSourcePath for any path that
resolved but not to an absolute one. With an absolute source, such a path
is one this platform cannot open (C:\x.pdf on Unix): it is now
NotLocal(Invalid). A relative target from a missing or relative source
still gives MissingSourcePath.

* ci: check the legacy .cargo/config for source replacement too

Cargo reads .cargo/config as well as .cargo/config.toml, so the
git-sources step greps both; grep -s keeps a missing file from
failing the step.

* ci: parse cargo config for source replacement, patches and path overrides
2026-10-23 13:02:41 -04:00
dependabot[bot] f4b5a909bd ci(deps): bump Swatinem/rust-cache (#4227)
Bumps the actions group with 1 update: [Swatinem/rust-cache](https://github.com/swatinem/rust-cache).


Updates `Swatinem/rust-cache` from 2.9.2 to 2.9.3
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/6323deb102c322ba6fcbdcafc7e3dddab59af2b6...d1527c8f67ef9af357290475d4af4b0fab8f12e0)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-version: 2.9.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-23 10:19:28 -04:00
oracola91 05ac6a911c ci: read-only token for the CI workflow (#4026)
ci.yml had no permissions block, so its token got the repository
default. Its jobs only check out code, restore caches and upload
artifacts, so contents: read is enough.

The permissions half of item 6 in #1114.
2026-10-23 10:19:22 -04:00