Commit Graph
4 Commits
Author SHA1 Message Date
Yota HamadaandClaude Fable 5.1 351289d2f6 Sign the Windows binaries and installer with Azure Artifact Signing (#3645)
SmartScreen blocked dagu-<version>-setup.exe in Edge because it was an
unsigned executable with no download reputation, and Windows showed an
unknown publisher when it ran. Azure Artifact Signing (formerly Trusted
Signing) fixes both, and feeds reputation straight into SmartScreen.

Signing happens inside GoReleaser, as a post-build hook that signs each
Windows binary in place with jsign, so the archive, checksums.txt, the
attestation, the packslip and the installer all carry the same signed
bytes. The installer job then passes a jsign sign tool to Inno Setup,
which signs the setup executable and its uninstaller, and refuses to
upload an installer whose signature is not valid and timestamped.

A composite action logs in to Azure with the job's OIDC token for the
`release` environment, fetches a short-lived token for the signing
service and downloads a checksum-pinned jsign. No secret is stored. The
whole path is gated on the AZURE_SIGNING_ACCOUNT repository variable, so
a release still builds unsigned when it is empty.

The installer is now dagu-windows-amd64-setup.exe on every release, so
the newest one has a stable releases/latest/download URL.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-08 00:18:34 +09:00
Yota Hamada 9436ffc1fd Lint Windows and macOS files in one linter job
Three linter jobs each linted all 285 packages, for linux, windows,
and darwin, though only 29 packages have files that differ on Windows
and 4 on macOS. One job now lints everything for Linux, then lints
only those packages for each other system, which sees every file
behind a build constraint at a fraction of the work and two fewer
jobs per run.
2026-10-25 21:24:15 +09:00
Yota Hamada d6c474a3bd Spend fewer runner minutes per CI run
CI waits on the org's 20 concurrent jobs, and most of each job was
setup. Every Ubuntu job restored a 6.6 GB build cache, mostly builds
of earlier commits that Go keeps for five days, which took two to
three minutes to unpack. The linters restored that race and coverage
cache too, though they compile for another GOOS.

The job that saves a cache now first drops the entries it did not
use, so the cache holds one build. Each linter GOOS keeps a small
cache of its own. Suites whose tests run shorter than a job's setup
use fewer shards: Ubuntu integration one instead of three, and the
Windows unit and integration suites two each instead of three and
four.
2026-10-25 21:19:23 +09:00
Yota Hamada 1a76b62f62 ci: shard Go and conformance tests to cut CI time (#2862) 2026-09-25 15:14:29 +09:00