summaryrefslogtreecommitdiff
path: root/ci-cd
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /ci-cd
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'ci-cd')
-rw-r--r--ci-cd/DEPLOYMENT_PLAYBOOK.md590
-rw-r--r--ci-cd/DEVELOPMENT_WORKFLOW.md211
2 files changed, 602 insertions, 199 deletions
diff --git a/ci-cd/DEPLOYMENT_PLAYBOOK.md b/ci-cd/DEPLOYMENT_PLAYBOOK.md
index e2baa966..1e41d2dd 100644
--- a/ci-cd/DEPLOYMENT_PLAYBOOK.md
+++ b/ci-cd/DEPLOYMENT_PLAYBOOK.md
@@ -11,15 +11,16 @@ Reference for configuring and operating the WSJT-X GitHub Actions CI/CD pipeline
1. [Prerequisites](#1-prerequisites)
2. [Architecture Overview](#2-architecture-overview)
3. [Phase 1: Enable GitHub Actions on the Org](#3-phase-1-enable-github-actions-on-the-org)
-4. [Phase 2: Adapt Workflow Files](#4-phase-2-adapt-workflow-files)
+4. [Phase 2: Install the Release Workflows](#4-phase-2-install-the-release-workflows)
5. [Phase 3: Create Repository Secrets](#5-phase-3-create-repository-secrets)
6. [Phase 4: Supporting Files](#6-phase-4-supporting-files)
7. [Phase 5: Submit the PR](#7-phase-5-submit-the-pr)
8. [Phase 6: Test the CI Pipeline](#8-phase-6-test-the-ci-pipeline)
9. [Phase 7: Test the Release Pipeline](#9-phase-7-test-the-release-pipeline)
-10. [Ongoing Maintenance](#10-ongoing-maintenance)
-11. [Troubleshooting](#11-troubleshooting)
-12. [Reference: Complete File Inventory](#12-reference-complete-file-inventory)
+10. [Scheduled Beta Releases](#10-scheduled-beta-releases)
+11. [Ongoing Maintenance](#11-ongoing-maintenance)
+12. [Troubleshooting](#12-troubleshooting)
+13. [Reference: Complete File Inventory](#13-reference-complete-file-inventory)
---
@@ -34,6 +35,7 @@ Before starting, confirm every item on this list. Missing any one of them will b
| **Org admin** or **repo admin** on `WSJTX/wsjtx-internal` | Go to repo → Settings. If you see "Actions" in the left sidebar, you have admin access. | Org owner (Joe K1JT) |
| **Write access** to `WSJTX/wsjtx` (public repo) | Try `gh api repos/WSJTX/wsjtx --jq .permissions.push` — should return `true` | Org owner |
| **GitHub Actions enabled** at the org level | Org Settings → Actions → General. Must not show "Actions permissions: Disabled" | Org owner |
+| **Create and install** the release-bot GitHub App on `WSJTX/wsjtx-internal` | Org Settings → Developer settings → GitHub Apps | Org owner |
### Credentials You'll Need
@@ -44,6 +46,8 @@ Before starting, confirm every item on this list. Missing any one of them will b
| App Store Connect API key (for notarization) | A team-owned key created by the Apple Developer Account Holder | `.p8` private key, key ID, and issuer ID |
| Apple Team ID | Apple Developer portal → Membership Details | 10-char alphanumeric like `ABCDE12345` |
| GitHub fine-grained PAT | github.com → Settings → Developer settings → Fine-grained tokens | `github_pat_...` token string |
+| Release-bot GitHub App private key | Generated in the App's settings (§5.6) | `.pem` file plus the App ID or client ID |
+| SignPath API token | The SignPath CI user's API token (§5.4) | Token string |
### Tools
@@ -51,13 +55,45 @@ Before starting, confirm every item on this list. Missing any one of them will b
- `base64` command (macOS and Linux both have this)
- Git with push access to `WSJTX/wsjtx-internal`
+### Required Repository Configuration
+
+The release pipeline requires this repository configuration. Each row links to its procedure.
+
+| Area | Requirement | Details |
+|------|-------------|---------|
+| Private branches | Rulesets on `develop` and `release/*` forbid force-push and deletion, so GitHub reports them as protected. Prepare Release Dependencies runs only from protected `develop` and requires the selected source branch to be protected. | [Branch, Tag, and Environment Protection](#branch-tag-and-environment-protection), [Prepared Linux release images](#prepared-linux-release-images) |
+| Public refs | `v*` tags: no update or deletion, and only the source-promotion identity creates them. `master` and `release/*`: no force-push or deletion, and no other rule. | [Branch, Tag, and Environment Protection](#branch-tag-and-environment-protection) |
+| Private environments | `candidate-tagging` and `source-promotion` admit only `release/*`; `beta-automation` admits only `develop`. None has required reviewers, which would stall the [beta scheduler](#10-scheduled-beta-releases). | [Navigate to Secrets Settings](#navigate-to-secrets-settings) |
+| Secrets | `CROSS_REPO_TOKEN` only in `source-promotion`, with no repository-level copy. No `SIGNPATH_API_TOKEN` in `wsjtx-internal`. On `WSJTX/wsjtx`: `SIGNPATH_API_TOKEN` only in `windows-release-signing`; Apple credentials, when distribution signing is enabled, only in `apple-release-signing`. | [Verification: Credential Boundaries](#verification-credential-boundaries) |
+| Publication environments | `public-release`: one required-reviewers rule (`release-approvers`), self-review allowed, `v*` tags; RC and GA. `beta-release`: no reviewer, one tag rule `v*-beta*`; betas. | [Public Final Publication Approval](#public-final-publication-approval), [Public Beta Publication](#public-beta-publication) |
+| Public signing environments | `apple-release-signing` admits `v*` tags and holds the Apple identity variables; `windows-release-signing` admits `master` and `v*` tags and holds variables `WINDOWS_SIGNER_SUBJECT` and `WINDOWS_SIGNER_THUMBPRINTS`. Repository variable `MACOS_DISTRIBUTION_SIGNING_ENABLED` on `WSJTX/wsjtx` selects macOS distribution signing. | [5.2 macOS Code Signing Environment](#52-macos-code-signing-environment), [5.4 Windows Authenticode Signing via SignPath Foundation](#54-windows-authenticode-signing-via-signpath-foundation) |
+| Release-bot App | Installed on `wsjtx-internal` with Contents, Workflows, and Actions write. `beta-automation` holds variable `RELEASE_BOT_APP_ID` (the App's numeric ID or client ID) and secret `RELEASE_BOT_PRIVATE_KEY`. | [5.6 Release-bot GitHub App](#56-release-bot-github-app) |
+| Beta switch | Repository variable `BETA_AUTOMATION` on `WSJTX/wsjtx-internal` equals `enabled` while betas run. Never set on `WSJTX/wsjtx`. | [Pause and freeze](#pause-and-freeze) |
+| Issues | Issues enabled on `WSJTX/wsjtx-internal` for the beta alert issue | [Failure alerts](#failure-alerts) |
+| Prepared image packages | `ghcr.io/wsjtx/wsjtx/linux-noble`, `ghcr.io/wsjtx/wsjtx/linux-arm64-bookworm`, `ghcr.io/wsjtx/wsjtx/linux-armhf-cross-bookworm`, and `ghcr.io/wsjtx/wsjtx/linux-armv7-bookworm` are public, and `wsjtx-internal` has write access to them. | [Prepared Linux release images](#prepared-linux-release-images) |
+| Linux image selection | Each `release/X.Y` has a committed `release-linux-images.json` before its first candidate. | [Prepared Linux release images](#prepared-linux-release-images) |
+
---
## 2. Architecture Overview
Understanding the architecture will help you debug issues during deployment.
-> **Tag convention.** Internal `build/v*` tags identify immutable candidates. Only manual promotion creates the corresponding public `v*` tag; public distribution builds start from that public tag.
+> **Tag convention.** Internal `build/v*` tags identify immutable candidates. Only promotion creates the corresponding public `v*` tag: a release manager promotes RCs and GA releases, and the beta scheduler promotes betas. Public distribution builds start from that public tag. Public tags are `vX.Y.Z-betaN`, `vX.Y.Z-rcN`, or `vX.Y.Z`; [Public branch history and GA line policy](#public-branch-history-and-ga-line-policy) gives their order.
+
+### Release channels
+
+`release-state.txt` names the channel: `DEVEL`, `BETA`, `RC`, or `GA`. A release line `release/X.Y` has three phases:
+
+1. **Beta phase.** Each Tuesday the beta scheduler cuts a beta from the newest green `develop` and carries it through candidate creation, promotion, and publication with no human step. It skips a week in which `develop` has no green commit that the line lacks. See [Scheduled Beta Releases](#10-scheduled-beta-releases).
+2. **Freeze.** A reviewed commit that sets `RC 1` ends the beta phase ([Pause and freeze](#pause-and-freeze)).
+3. **RC and GA.** A release manager promotes each candidate, and a member of the `release-approvers` team approves publication, as [Phase 7](#9-phase-7-test-the-release-pipeline) describes.
+
+Every promotion, beta included, creates or fast-forwards public `release/X.Y`, so the beta line is a public branch. Betas are GitHub prereleases; they never become Latest and never move `master`.
+
+`DEVEL`, `BETA`, and `RC` GUI builds show a prerelease notice and expire ([Release state contract](#release-state-contract)); `GA` builds and the command-line programs never expire.
+
+**Fixes land on `develop` first, in every phase.** After the freeze, cherry-pick each fix from `develop` to `release/X.Y`. In the beta phase, push no fix to the line, not even a cherry-pick: the scheduler stops the line on any commit that `develop` does not contain, other than the App's merges and metadata-only commits ([state machine](#state-machine) step 4). After each GA, merge the GA commit into `develop`, as the history bridge in [Public branch history and GA line policy](#public-branch-history-and-ga-line-policy) describes.
### Workflow Structure
@@ -76,16 +112,14 @@ Understanding the architecture will help you debug issues during deployment.
│ unsigned.
│
├── build-windows.yml ← Reusable workflow (workflow_call).
-│ Windows x86_64 via MSYS2/MinGW64. Installer
-│ signing per sign_mode input: ephemeral
-│ self-signed osslsigncode (CI/DEVEL/RC) or
-│ none (GA — SignPath signs downstream, §5.4).
+│ Windows x86_64 via MSYS2/MinGW64. Builds
+│ the installer unsigned and verifies
+│ NotSigned.
│
-├── sign-windows-release.yml ← Public repo (WSJTX/wsjtx) only; triggered by
-│ promoted v* tags for both RC and GA.
-│ Rebuilds the installer from public source,
-│ SignPath authenticode-signs it, verifies the
-│ chain and expected signer (hard-fail for RC/GA).
+├── sign-windows-release.yml ← Reusable workflow (workflow_call) called by
+│ public-release.yml on WSJTX/wsjtx. Rebuilds the
+│ installer from public source; SignPath signs it
+│ unless the tagged state is unsigned.
│
├── signpath-smoke.yml ← workflow_dispatch; public repo.
│ ~2-minute SignPath round-trip check
@@ -96,15 +130,35 @@ Understanding the architecture will help you debug issues during deployment.
│ GitHub issue when a newer 4.x release is available.
│ No platform builds; self-contained.
│
+├── prepare-release-dependencies.yml ← Prepare Release Dependencies: workflow_dispatch
+│ from develop. Copies the four Linux images to public
+│ packages and produces release-linux-images.json.
+│
+├── release-tag-helper.yml ← Prepare Release Candidate: workflow_dispatch.
+│ Validates the release-branch tip and its CI, creates
+│ the build/v* tag, then calls release.yml.
+│
├── release.yml ← Internal `build/v*` candidate builds only.
│ Uploads validation artifacts; never publishes.
│
-└── promote-release.yml ← Manual candidate validation and public tag promotion.
+├── promote-release.yml ← Promote Release Source: workflow_dispatch.
+│ Validates a candidate and promotes its tag;
+│ manual for RC and GA, dispatched for betas.
+│
+├── public-release.yml ← Build and Publish Public Release: v* tag push on
+│ WSJTX/wsjtx. Rebuilds from public source, verifies
+│ the bundle, and publishes the GitHub Release.
+│
+├── beta-cut.yml ← Scheduled Beta Cut: weekly cron + workflow_dispatch.
+│ Applies one state-machine step.
+│
+└── beta-continue.yml ← Scheduled Beta Continue: workflow_run.
+ Carries each App-started beta run onward.
```
### How It Flows
-**On pushes and pull requests to `develop` or `release/**`:**
+**On pushes and pull requests to private `develop` or `release/**`:**
```
Push or pull request
└─→ ci.yml triggers
@@ -119,67 +173,107 @@ release/X.Y metadata commit
└─→ Prepare Release Candidate validates/creates build/vX.Y.Z[-rcN]
└─→ release.yml builds the private candidate
└─→ release manager validates/promotes that candidate
- └─→ public vX.Y.Z[-rcN] builds and signs all distributions
- └─→ public-release approval publishes the release
+ └─→ public vX.Y.Z[-rcN] builds and checks all distributions
+ └─→ assembled bundle summary and final `public-release` approval
+ └─→ verified GitHub Release publication
+```
+
+**For a scheduled beta:**
+```
+beta-cut.yml merges the newest green develop into release/X.Y as BETA N
+ └─→ ci.yml push run on release/X.Y
+ └─→ beta-continue.yml dispatches Prepare Release Candidate: build/vX.Y.Z-betaN
+ └─→ release.yml builds the private candidate on every target
+ └─→ beta-continue.yml dispatches Promote Release Source
+ └─→ public vX.Y.Z-betaN builds and checks all distributions
+ └─→ publication through beta-release, no approval
+ └─→ GitHub prerelease; never Latest; master does not move
```
-The two approvals answer different questions: source promotion approves disclosure of the reviewed candidate, while `public-release` approves the exact publication artifacts after they exist. An RC publishes a public tag without moving `master`; GA also advances `master` to the promoted commit.
+**For `beta1`, or a retry at a green tip:**
+```
+beta-cut.yml dispatches Prepare Release Candidate at the tip, with no merge
+ └─→ release.yml builds the private candidate on every target
+ └─→ continues as above
+```
+
+Source promotion makes the candidate source public. The public workflow builds and verifies the bundle. An RC or GA then waits for final publication approval in `public-release`; a beta publishes through `beta-release` without one. The [state machine](#state-machine) decides which path a cut takes. See [Public branch history and GA line policy](#public-branch-history-and-ga-line-policy) for branch and tag behavior.
### Build Strategy
-Each platform build does the same two-stage process:
-1. **Build Hamlib 4.7.2** from source (cached after first run)
-2. **Build WSJT-X** against the Hamlib install prefix
+Linux candidate and public builds compile WSJT-X from the selected source commit using prepared dependency images. macOS and Windows build native dependency prefixes and reuse them through Actions caches.
+
+### Cache readiness
+
+Native build summaries show dependency cache hits, misses, and rebuild results. Compiler-cache rows distinguish exact and fallback restores from a miss; a forced recompile is reported separately. The dependency warmer also summarizes each selected platform's result. A cache hit alone does not establish that the application build passed.
+
+Use `cold_build=true` on a manually dispatched macOS or Windows build to bypass workflow-managed dependency and compiler-cache restores and saves. Windows also bypasses the MSYS2 package cache. This leaves the runner's preinstalled software in place. `recache` only forces application recompilation and does not make dependencies cold. The macOS build budget is 180 minutes; confirm a cold run completes dependency builds, tests, and packaging within that budget before relying on it for a release.
+
+### Prepared Linux release images
+
+Before creating a candidate, run Prepare Release Dependencies from protected private `develop`, selecting a protected `develop` or `release/X.Y` source branch and an explicit validated image generation. The workflow resolves the selected branch to an exact commit before validating its recipes. Refresh incompatible or missing images through the existing Linux image publisher first.
+
+Preparation verifies all four images against the selected source recipes: x86_64, aarch64, and the ARMHF cross-builder/runtime pair. It copies them to `ghcr.io/wsjtx/wsjtx` without changing their digests and verifies anonymous access. Images contain dependency tooling, not WSJT-X application builds. Review changes to copied scripts and image metadata before public preparation; a digest-preserving copy retains the original OCI labels and build metadata.
-This matches what developers do locally but doesn't use the superbuild. The superbuild's ExternalProject approach doesn't map well to CI caching. Building Hamlib directly and caching its install prefix gives better cache hits and faster builds.
+The private workflow needs package read access to the internal images and write access to the destination packages through its `GITHUB_TOKEN`. Destination packages must be public, which only the web UI can set. An organization owner first allows public packages under Org Settings → Packages → Package creation. Then, on each destination package's Package settings, add `WSJTX/wsjtx-internal` with role Write under Manage Actions access, and choose Public under Change visibility. A public package cannot be made private again. The workflow changes neither visibility nor access. Prepared image retention tags must remain available for release rebuilds.
-### What Gets Cached
+Download the successful `prepared-release-dependencies` artifact and review `release-linux-images.json`. Commit that file on the private release branch before candidate tagging. It records the validated generation, four public image digests, and their recipe fingerprints. Application-only changes may reuse it; recipe changes require a new preparation. Keep the detailed preparation record with the private workflow artifacts.
-| Cache | Key | Saves |
-|-------|-----|-------|
-| Hamlib install (per platform × arch) | `hamlib-{os}-{arch}-{branch}-{workflow-hash}` on macOS and Linux (separate caches for macOS arm64 vs. x86_64 and Linux x86_64 vs. aarch64); `hamlib-windows-{branch}-{workflow-hash}` on Windows (single arch) | 5-10 min per platform |
-| MSYS2 packages | Built-in `cache: true` parameter | 3-5 min on Windows |
+The selection belongs to its release branch and never lands on `develop`. In the beta phase the scheduler replaces it without review when `develop`'s recipes change ([state machine](#state-machine) step 5); RC and GA candidates keep the review above.
-Caches invalidate when the Hamlib branch changes or the workflow file changes. This is intentional — if you change build flags, the cache rebuilds.
+Candidate and public builds consume the committed selection and build WSJT-X afresh. They stop on missing images or incompatible recipes instead of resolving `stable` or refreshing images during release. Candidate provenance binds the selection's checksum and digests; source promotion verifies that binding. The public release manifest records the same builder digests.
### What the Release Produces
-Each approved public `v*` tag yields one installer per target plus a source tarball on the public GitHub Release:
+Each published public `v*` tag yields, on the public GitHub Release, one installer and the command-line program tarballs per target, a `.deb` and an `.rpm` per Linux architecture, a source tarball, `SHA256SUMS`, and `release-manifest.json`:
| Artifact | Produced by | Format |
|----------|-------------|--------|
-| `wsjtx-<ver>-arm64-macOS.pkg` | `build-macos.yml` (arm64 leg) | Hosted Developer ID signing, or a validated package for manual replacement |
-| `wsjtx-<ver>-x86_64-macOS.pkg` | `build-macos.yml` (x86_64 leg) | Hosted Developer ID signing, or a validated package for manual replacement |
+| `wsjtx-<ver>-arm64-macOS.pkg` | `build-macos.yml` (arm64 leg) | GA: signed in distribution mode; signed by hand and replaced in manual mode. RC: the unsigned validation package in manual mode; signed in distribution mode. Beta: the unsigned validation package |
+| `wsjtx-<ver>-x86_64-macOS.pkg` | `build-macos.yml` (x86_64 leg) | GA: signed in distribution mode; signed by hand and replaced in manual mode. RC: the unsigned validation package in manual mode; signed in distribution mode. Beta: the unsigned validation package |
| `wsjtx-<ver>-linux-x86_64.AppImage` | `build-linux.yml` (x86_64 leg) | Portable AppImage |
| `wsjtx-<ver>-linux-aarch64.AppImage` | `build-linux.yml` (aarch64 leg) | Portable AppImage |
| `wsjtx-<ver>-linux-armhf.AppImage` | `build-linux.yml` (armhf leg) | Portable AppImage |
| Linux x86_64 `.deb` and `.rpm` | `build-linux.yml` (x86_64 leg) | Distribution packages |
| Linux aarch64 `.deb` and `.rpm` | `build-linux.yml` (aarch64 leg) | Distribution packages |
| Linux armhf `.deb` and `.rpm` | `build-linux.yml` (armhf leg) | Distribution packages |
-| `wsjtx-<ver>-win64.exe` | `build-windows.yml` | SignPath Foundation Authenticode for both public RC and GA |
+| `wsjtx-<ver>-win64.exe` | `build-windows.yml`; signed by `sign-windows-release.yml` | GA: SignPath Foundation Authenticode. Beta and RC: unsigned |
+| `wsjtx-<ver>-arm64-macOS-<tarball>.tar.gz` | `build-macos.yml` | Programs with the dylibs they load in `lib/`; ad-hoc signed, not notarized |
+| `wsjtx-<ver>-x86_64-macOS-<tarball>.tar.gz` | `build-macos.yml` | Programs with the dylibs they load in `lib/`; ad-hoc signed, not notarized |
+| `wsjtx-<ver>-linux-<arch>-<tarball>.tar.gz` | `build-linux.yml` (x86_64, aarch64 and armhf legs) | Programs in `bin/` with the libraries they load in `lib/`, except the host libraries linuxdeploy leaves out; unsigned |
+| `wsjtx-<ver>-windows-x86_64-<tarball>.tar.gz` | `build-windows.yml` | Programs with the DLLs they import; not Authenticode-signed |
| `wsjtx-<ver>-src.tar.gz` | Public release workflow | Source tarball from the public tag |
+| `SHA256SUMS` | Public release workflow | SHA-256 of each immutable asset |
+| `release-manifest.json` | Public release workflow | Tag, source commit, workflow run, builder digests, signing modes, and immutable asset hashes |
-The project-created source tarball is assembled from the public tag. GitHub also generates its own zip and tar.gz source archives for that tag; they contain the tagged tree but may have different compressed hashes. `SHA256SUMS` covers immutable payload assets uploaded by the workflow. In manual macOS signing mode it excludes the two replaceable `.pkg` files, which the release manifest identifies separately. The manifest also records the tag, source commit, workflow run, and builder provenance. Checksums detect changed bytes; platform signatures establish signer identity and must be verified separately.
+`CMake/Install.cmake` defines the command-line programs every installer carries, `wsjt_installed_cli_tools`: the install rules cover it, and the macOS package stages `/usr/local/wsjtx` from the build's `installed-cli-tools.txt`; unless `/usr/local/wsjtx` is a symbolic link, its postinstall removes programs there that the package does not ship, with their `/usr/local/bin` links, and leaves `lib/` alone. Staging fails if a listed program is missing.
+
+`CMake/release-tarballs.txt` defines the release tarballs, one per line: `jt9`; `jt9stream`, the decoder for other front ends, which does not use Qt; `wsprd`; and `utilities`, which holds `wsprcode`, `encode77` and the signal simulators that no installer carries. `release-policy.py` reads the same file for the asset names, and `CMake/Install.cmake` adds its programs, whatever the build options, to the build's `cli-tools.txt`, from which the macOS build collects the programs it packages. `.github/scripts/package-cli-tools.sh` gives each tarball the libraries its programs load beyond the operating system's: on macOS the dylibs reached through `@rpath`, on Windows the import closure from the staged installation, and on Linux what linuxdeploy deploys outside its excludelist (`.github/scripts/linuxdeploy-excludelist.txt`), with RUNPATH `$ORIGIN/../lib` on programs and `$ORIGIN` on libraries, and the Debian copyright files of the libraries that come from Debian packages. Each tarball also holds `README.txt`, which gives the layout, the writable directories the programs need, the WSJT-X copyright notice from `doc/common/license.adoc` and, on Linux, the oldest glibc and the host libraries the programs need; `COPYING`; and `THIRD-PARTY.txt`, which names each bundled library's component and license from `.github/scripts/third-party-libraries.tsv`. Packaging fails if a listed program is missing, a dependency resolves neither inside the tarball nor to the operating system, a Linux RUNPATH entry is not relative to `$ORIGIN`, or a bundled library is missing from that table. Each build then runs every program from its own extracted tarball with the library search variables unset (`smoke-release-tarballs.sh`) before it uploads the tarballs.
+
+The project-created source tarball is assembled from the public tag. GitHub also generates its own zip and tar.gz source archives for that tag; they contain the tagged tree but may have different compressed hashes. `SHA256SUMS` covers immutable payload assets uploaded by the workflow. For an RC or GA in manual macOS signing mode it excludes each macOS package, which the release manifest identifies as replaceable; a beta's macOS packages are not replaceable, so `SHA256SUMS` covers them. The manifest also records the tag, source commit, workflow run, builder provenance, and both signing modes. Checksums detect changed bytes; platform signatures establish signer identity and must be verified separately.
### All-Platforms-Ready Gate
-Before publishing, the release workflow requires each platform build to produce its expected installer artifact. This prevents a structurally successful build job from creating a partial release.
+Before publishing, the release workflow requires each platform build to produce its expected installer and release tarball artifacts. This prevents a structurally successful build job from creating a partial release.
-The gate checks for one installer per platform:
+The gate checks for exactly one non-empty installer per platform and every release tarball:
| Platform | Expected artifact pattern |
|----------|---------------------------|
-| macOS arm64 | Hosted-signing artifact, or `artifacts/wsjtx-<ver>-arm64-macOS-unsigned.pkg/*.pkg` in manual mode |
-| macOS x86_64 | Hosted-signing artifact, or `artifacts/wsjtx-<ver>-x86_64-macOS-unsigned.pkg/*.pkg` in manual mode |
+| macOS arm64 | `artifacts/wsjtx-<ver>-arm64-macOS.pkg/*.pkg` in distribution mode, or `artifacts/wsjtx-<ver>-arm64-macOS-unsigned.pkg/*.pkg` in manual mode and for betas |
+| macOS x86_64 | `artifacts/wsjtx-<ver>-x86_64-macOS.pkg/*.pkg` in distribution mode, or `artifacts/wsjtx-<ver>-x86_64-macOS-unsigned.pkg/*.pkg` in manual mode and for betas |
| Linux x86_64 | `artifacts/wsjtx-<ver>-linux-x86_64-AppImage/*.AppImage` |
| Linux aarch64 | `artifacts/wsjtx-<ver>-linux-aarch64-AppImage/*.AppImage` |
| Linux armhf | `artifacts/wsjtx-<ver>-linux-armhf-AppImage/*.AppImage` |
-| Linux packages | One non-empty `.deb` and `.rpm` under each architecture's artifact directory |
-| Windows x86_64 | `artifacts/wsjtx-<ver>-windows-x86_64-installer-signed/*.exe` |
+| Linux packages | One non-empty `.deb` in `artifacts/wsjtx-<ver>-linux-<arch>-deb/` and one `.rpm` in `artifacts/wsjtx-<ver>-linux-<arch>-rpm/` for each architecture, checked when the manifest is written |
+| Windows x86_64 | Signed mode: `artifacts/wsjtx-<ver>-windows-x86_64-installer-signed/*.exe`; unsigned mode: `artifacts/wsjtx-<ver>-windows-x86_64-installer/wsjtx-<ver>-win64.exe` and no `-installer-signed` artifact |
+| Release tarballs | One non-empty `.tar.gz` in `artifacts/wsjtx-<ver>-<target>-<tarball>/` for each target (`arm64-macOS`, `x86_64-macOS`, `linux-x86_64`, `linux-aarch64`, `linux-armhf`, `windows-x86_64`) and each tarball in `CMake/release-tarballs.txt` |
-If any pattern matches zero files, the release job stops before publishing.
+The four tarball groups across six platforms require 24 release tarballs.
-Presence alone is insufficient. The publication gate also requires the expected production filenames and reports, and verifies that their hashes, public tag, and source SHA agree. In manual macOS signing mode the reports prove that the unsigned packages came from the expected validation builds; their final signatures are verified after manual replacement. A separate installed-runtime smoke test remains necessary because cryptographic verification does not establish application behavior.
+If any pattern matches no file or more than one, the release job stops before publishing.
+
+Presence alone is insufficient. The publication gate also requires the expected production filenames and reports, and verifies that their hashes, public tag, and source SHA agree. In manual macOS signing mode the reports prove that the unsigned packages came from the expected validation builds; for a GA release, their final signatures are verified after manual replacement. A separate installed-runtime smoke test remains necessary because cryptographic verification does not establish application behavior.
---
@@ -201,18 +295,18 @@ Under **Actions permissions**, select one of:
- **"Allow all actions and reusable workflows"** — simplest, allows everything
- **"Allow WSJTX, and select non-WSJTX, actions and reusable workflows"** — more restrictive
-If you choose the restrictive option, explicitly allow the third-party actions used by the workflows:
-- `actions/checkout@v7`
-- `actions/cache/restore@v5` and `actions/cache/save@v5`
-- `actions/cache/restore@v6` and `actions/cache/save@v6`
-- `actions/upload-artifact@v7`
-- `actions/download-artifact@v8`
+If you choose the restrictive option, enable "Allow actions created by GitHub", because several workflows pin `actions/*` by commit SHA and the beta scheduler uses `actions/create-github-app-token`. Then allow these third-party actions:
+- `docker/build-push-action@v7`
+- `docker/login-action@v4`
+- `docker/setup-buildx-action@v4`
+- `docker/setup-qemu-action@v4`
- `msys2/setup-msys2@v2`
+- `signpath/github-action-submit-signing-request@v3`
-**Important:** GitHub's allowlist must match each workflow `uses:` entry. Re-run the following after any Dependabot bump to stay aligned:
+**Important:** GitHub's allowlist must admit each workflow `uses:` entry: the GitHub-created option covers `actions/*`, and the list above covers the rest. Re-run the following after any Dependabot bump to stay aligned:
```bash
-grep -rE 'uses: (actions/|msys2/)' .github/workflows/ | sort -u
+grep -rhoE 'uses: [^.][^ ]*' .github/workflows/ .github/actions/ | sort -u
```
### Step 3: Set Workflow Permissions
@@ -244,13 +338,16 @@ The release-related files have distinct responsibilities:
| File | Responsibility |
|------|----------------|
-| `release-state.txt` | Tracked numeric version, channel, RC number, and archive revision placeholder |
+| `release-state.txt` | Tracked numeric version, channel, prerelease number, optional Windows signing mode, and archive revision placeholder |
+| `prepare-release-dependencies.yml` | Verify the four Linux release images against a branch's recipes, copy them to the public packages, and produce `release-linux-images.json` |
| `release-tag-helper.yml` | Validate the release-branch tip and CI, create an immutable private candidate tag, then call the candidate build |
| `release.yml` | Build private validation artifacts only; never publish or copy source |
-| `promote-release.yml` | Validate the candidate run and manually copy its exact commit to the public tag; update public `master` only for GA |
-| `public-release.yml` | Rebuild from public source, sign RC/GA installers, assemble an inspectable bundle, and publish after approval |
+| `promote-release.yml` | Validate the candidate run and atomically create its immutable tag and create or fast-forward its public release branch; advance public `master` only for newest-line GA |
+| `public-release.yml` | Rebuild from public source, enforce the tagged signing policy, verify the bundle, publish (RC and GA after approval; betas through `beta-release`), and preserve Latest on older-line GA |
+| `beta-cut.yml` | Weekly cron or a dispatch: apply one step of the [state machine](#state-machine) to the line in `BETA` state |
+| `beta-continue.yml` | After each App-started beta or preparation run: dispatch the next stage, or alert on a failure ([Continuation](#continuation)) |
-`release-state.txt` is the version source of truth. Keep `revision=$Format:%H$` literal in Git; Git expands it in exported archives. The workflows reject a tag whose version/channel does not match the tracked state.
+`release-state.txt` is the version source of truth. Keep `revision=$Format:%H$` literal in Git; Git expands it in exported archives. The workflows reject a tag whose version, channel, or prerelease number does not match the tracked state.
The Hamlib version remains pinned on reusable-workflow calls. To audit all pin sites before changing it:
@@ -258,13 +355,53 @@ The Hamlib version remains pinned on reusable-workflow calls. To audit all pin s
rg -n 'hamlib_branch:' .github/workflows
```
+### Release state contract
+
+`release-state.txt` holds four or five `key=value` lines, each key once. Any other key, such as `rc`, is rejected.
+
+| Key | Value |
+|-----|-------|
+| `version` | Numeric `X.Y.Z` |
+| `channel` | `DEVEL`, `BETA`, `RC`, or `GA` |
+| `prerelease` | A positive number `N` with no leading zero for `BETA` and `RC`; empty for `DEVEL` and `GA` |
+| `revision` | The literal `$Format:%H$` in Git; the full commit ID in an exported archive |
+| `windows_signing` | Optional: `signpath`, the default, or `unsigned`. `release-policy.py` rejects a `BETA` state without `unsigned`; RC metadata commits set `unsigned` by procedure, and nothing checks it ([Step 1](#step-1-prepare-release-metadata)) |
+
+The channel and number set the version suffix: `-devel`, `-betaN`, `-rcN`, or none for `GA`. Candidate tags, public tags, and asset names carry the suffixed version, for example `build/v3.3.0-beta1`, `v3.3.0-beta1`, and `wsjtx-3.3.0-beta1-win64.exe`. A `DEVEL` state is never tagged.
+
+Linux `.deb` and `.rpm` package versions write the suffix as `~betaN` or `~rcN`, so package managers order a beta before an RC and an RC before the GA release. A `DEVEL` package version is `X.Y.Z-devel` (`X.Y.Z_devel` in an `.rpm`) and sorts after the GA release of the same version. dpkg and rpm therefore treat that version's beta, RC, or GA package as older than an installed `DEVEL` package.
+
+The Windows installer's `DisplayVersion` uses the hyphenated form, such as `3.3.0-beta1`, and its VersionInfo product and file version strings add a `v`, such as `v3.3.0-beta1`. Each installer version writes its own Add/Remove Programs entry, while every version has the same default install directory and so shares one uninstaller. Every entry has the same display name and runs the same `Uninstall.exe`, the last-installed version's, which removes only that version's entry; the other entries remain. The macOS package version is hyphenated, the app bundle's short version string is `v`-prefixed, such as `v3.3.0-beta1`, and the bundle version is the numeric `X.Y.Z`.
+
+`DEVEL`, `BETA`, and `RC` builds of the WSJT-X GUI show a prerelease notice at every start. Once the 90th day (UTC) after the built commit's date has ended, they close after that notice. A build from a source archive, which has no Git metadata, counts from its configure date, and `SOURCE_DATE_EPOCH`, when set, replaces either date. `GA` builds never expire, and the command-line programs never expire in any channel.
+
---
## 5. Phase 3: Create Repository Secrets
-Use environments to keep credentials out of ordinary build jobs. On the private repository, `candidate-tagging` and `source-promotion` permit protected `release/*` branches; only `source-promotion` contains the cross-repository token. On the public repository, signing environments permit `v*` release tags. Only `public-release` needs a required reviewer; the other environments scope credentials and refs without adding approval prompts.
+The public `public-release` environment requires one approval from a member of the `release-approvers` team and allows self-review. For an RC or GA, a release manager's `operation=promote` dispatch approves public source, and only the final `publish` job waits for release approval. Betas publish through `beta-release`, which has no reviewer. `CROSS_REPO_TOKEN` is a secret of the private `source-promotion` environment.
+
+### Public Final Publication Approval
+
+Configure WSJTX/wsjtx Settings > Environments > public-release:
+
+1. Turn on Required reviewers and add the `release-approvers` team as the only reviewer. The team needs read access to `WSJTX/wsjtx`. Any member may approve.
+2. Turn off Prevent self-review; the first job rejects the environment while it is on.
+3. Under Deployment branches and tags, choose "Selected branches and tags", add one tag rule with the pattern `v*`, then save.
+
+The first job reads the environment with `Actions: read` and stops before platform builds if the rule is missing, malformed, unreadable, or blocks self-review. Only the final `publish` job should use this environment.
+
+Keep release credentials in their environments, not in repository secrets. A job that references `secrets.NAME` can fall back to a same-named repository or organization secret, which defeats the environment's ref restriction. When moving a secret into an environment, verify the environment copy before deleting the repository-level one. The Apple and SignPath credentials work only as environment secrets, because `public-release.yml` calls the reusable signing workflows without passing secrets.
+
+### Public Beta Publication
+
+Configure WSJTX/wsjtx Settings > Environments > beta-release:
-Configure and restrict these environments before merging workflow code that can reference their credentials. Copy each existing repository-level release secret into its designated environment, verify the environment copy, and then delete the repository-level secret before the workflows become reachable. GitHub can otherwise fall back to a same-named repository secret when a job references `secrets.NAME`, defeating the intended ref restriction. In particular, remove any repository-level `CROSS_REPO_TOKEN` and `SIGNPATH_API_TOKEN`; keep Apple credentials environment-only from the outset.
+1. Leave Required reviewers off.
+2. Under Deployment branches and tags, choose "Selected branches and tags".
+3. Add exactly one rule: a tag rule with the pattern `v*-beta*`, then save.
+
+The `publish` job uses `beta-release` for a beta and `public-release` for an RC or GA. For a beta, the first job checks `beta-release` instead of the `public-release` reviewer rule. It stops before platform builds unless `beta-release` has no reviewer rule, uses "Selected branches and tags", and has exactly the one `v*-beta*` tag rule. That pattern matches no RC or GA tag, so no RC or GA can deploy through `beta-release`.
### Navigate to Secrets Settings
@@ -272,11 +409,16 @@ Configure and restrict these environments before merging workflow code that can
https://github.com/WSJTX/wsjtx-internal/settings/environments
```
-Or: Repo → Settings → Environments. Create `candidate-tagging` and `source-promotion`, restrict both to protected `release/*` branches, and put the token below only in `source-promotion`.
+Or: Repo → Settings → Environments. Configure the private environments:
+
+1. `candidate-tagging` and `source-promotion`: choose "Selected branches and tags" and add one branch rule, `release/*`.
+2. `beta-automation`: choose "Selected branches and tags" and add one branch rule, `develop`.
+3. Add no required reviewers to any of the three; the scheduler's dispatched runs would wait for approval.
+4. Keep the promotion token in `source-promotion` (§5.1) and the release-bot App's credentials in `beta-automation` (§5.6).
### 5.1 Secret 1: `CROSS_REPO_TOKEN`
-**Purpose:** Allows the release workflow to push source code and tags to the public repo (`WSJTX/wsjtx`).
+**Purpose:** Allows Promote Release Source to push the public release branch, the public tag, and, for a newest-line GA, `master` to the public repo (`WSJTX/wsjtx`).
**How to create the PAT:**
@@ -316,11 +458,13 @@ The Apple Developer account holder exports the signing identities. A repository
The workflow uses two identities with different responsibilities:
-- **Developer ID Application** signs application executables, frameworks, plug-ins, and command-line tools.
+- **Developer ID Application** signs application executables, frameworks, plug-ins, and the command-line tools the package installs.
- **Developer ID Installer** signs the outer `.pkg` installer.
Notarization uses the App Store Connect API key in §5.3 rather than either certificate password. Rotate a certificate's `.p12` and password together. Rotate the notarization key on the team's schedule, when access changes, or after suspected exposure.
+The command-line program tarballs are not Developer ID-signed or notarized in either signing mode: their programs and `lib/` dylibs carry the build's ad-hoc signatures, and `SHA256SUMS` and the release manifest bind the tarball bytes to the tag and source commit. Browsers mark downloads with the `com.apple.quarantine` attribute, and macOS blocks quarantined programs that are not notarized, so remove the attribute from a tarball before extracting it: `xattr -d com.apple.quarantine wsjtx-<ver>-arm64-macOS-jt9stream.tar.gz`.
+
#### Preparing the .p12 files
You need two signing identities associated with the Apple Developer team:
@@ -404,17 +548,17 @@ Do not use a maintainer's Apple ID password or app-specific password. The API ke
gh secret list --repo WSJTX/wsjtx --env apple-release-signing
```
-The environment inventory must contain both certificate identities and the API-key notarization credential set declared by `build-macos.yml`: `DEVELOPER_ID_CERTIFICATE_P12`, `DEVELOPER_ID_CERTIFICATE_PASSWORD`, `DEVELOPER_ID_INSTALLER_P12`, `DEVELOPER_ID_INSTALLER_PASSWORD`, `APP_STORE_CONNECT_KEY_ID`, `APP_STORE_CONNECT_ISSUER_ID`, and `APP_STORE_CONNECT_PRIVATE_KEY_P8_BASE64`. Separately confirm `CROSS_REPO_TOKEN` in private environment `source-promotion`.
+The environment inventory must contain both certificate identities and the API-key notarization credential set declared by `build-macos.yml`: `DEVELOPER_ID_CERTIFICATE_P12`, `DEVELOPER_ID_CERTIFICATE_PASSWORD`, `DEVELOPER_ID_INSTALLER_P12`, `DEVELOPER_ID_INSTALLER_PASSWORD`, `APP_STORE_CONNECT_KEY_ID`, `APP_STORE_CONNECT_ISSUER_ID`, and `APP_STORE_CONNECT_PRIVATE_KEY_P8_BASE64`. Separately confirm `CROSS_REPO_TOKEN` in the private `source-promotion` environment.
Also configure the public workflow's non-secret expected Apple Team ID and SHA-1 fingerprints for the Application and Installer certificates. These are identifiers, not private-key material; the distribution job uses them to reject a valid but unintended identity.
-Set repository variable `MACOS_DISTRIBUTION_SIGNING_ENABLED=false` until the full environment is configured and tested. In that state the workflow publishes validated unsigned packages under the stable release filenames so a release manager can replace them manually. The manifest identifies those two packages as replaceable and excludes them from immutable hashes; workflow reruns preserve existing packages by name. Set the variable to `true` only after both architectures complete signing, notarization, stapling, identity, entitlement, and Gatekeeper verification. Distribution mode fails closed if any credential is absent.
-
-> **About Windows signing.** RC and GA installers are Authenticode-signed by SignPath Foundation on the **public** repo — see §5.4. No Windows certificate private key exists in GitHub; it remains in SignPath's HSM. Ordinary CI builds may use a per-run ephemeral self-signed certificate.
+Set repository variable `MACOS_DISTRIBUTION_SIGNING_ENABLED=false` on `WSJTX/wsjtx` (`gh variable set MACOS_DISTRIBUTION_SIGNING_ENABLED --repo WSJTX/wsjtx --body false`) until the full environment is configured and tested. In that state, manual mode, the workflow publishes each validated unsigned package of an RC or GA under its stable release filename. The manifest identifies each such package as replaceable and excludes it from immutable hashes; workflow reruns preserve existing packages by name. Set the variable to `true` only after both architectures complete signing, notarization, stapling, identity, entitlement, and Gatekeeper verification. Distribution mode, `true`, signs every RC and GA package and fails closed if any credential is absent. Betas ignore the variable ([Beta signing](#beta-signing)).
### 5.4 Windows Authenticode Signing via SignPath Foundation
-> **How it works.** SignPath Foundation signs OSS artifacts built from the public repository, so the signature attests public-source provenance as well as identity. A promoted `vX.Y.Z` or `vX.Y.Z-rcN` tag triggers the public build, submits the unsigned installer under the `release-signing` policy, verifies the returned Authenticode signature and timestamp, and makes that verified installer eligible for publication. A failed or rejected request blocks the release. The certificate's private key lives in SignPath's HSM; there is no `.pfx` to export or store in GitHub.
+> **How it works.** SignPath Foundation signs OSS artifacts built from the public repository, so the signature attests public-source provenance as well as identity. A promoted tag whose state selects SignPath, as a GA tag `vX.Y.Z` does, has its unsigned installer submitted under the `release-signing` policy. The public build verifies the returned Authenticode signature and timestamp and makes that verified installer eligible for publication. A failed or rejected request blocks the release. The certificate's private key lives in SignPath's HSM; there is no `.pfx` to export or store in GitHub.
+
+SignPath signs only the installer. The Windows command-line program tarballs are not submitted: their programs and DLLs carry no Authenticode signature, and `SHA256SUMS` and the release manifest bind the tarball bytes to the tag and source commit.
#### The one secret
@@ -455,17 +599,54 @@ The SignPath CI user must be a **submitter** on the signing policies (`release-s
`signpath-smoke.yml` (workflow_dispatch on the public repo) signs a trivial hello-world PE through the complete round trip in ~2 minutes — no WSJT source is built or exposed. Dispatch it against `test-signing` to validate plumbing without consuming a `release-signing` approval. Success: the workflow completes green — the returned exe carries a parseable Authenticode signature (hard-checked); chain status is printed for inspection only, since the test certificate never chains to a trusted root.
-#### RC/DEVEL builds
+#### Signing mode by channel
-DEVEL and private candidate builds may use a per-run ephemeral self-signed certificate. Public RC source is intentionally promoted before its distribution build, so RC installers use the same SignPath `release-signing` policy and hard verification as GA.
+A GA installer uses SignPath `release-signing`, because the GA metadata commit omits `windows_signing`. An RC installer is unsigned because its metadata commit sets `windows_signing=unsigned` ([Step 1](#step-1-prepare-release-metadata)); the public workflow records that mode in the manifest and verifies the installer accordingly. `release-policy.py` rejects a `BETA` state without `windows_signing=unsigned` ([Beta signing](#beta-signing)).
### 5.5 Linux Signing (Optional)
Linux binary signing is less critical — Linux users don't encounter SmartScreen-style warnings when downloading binaries. However, GPG-signing release tarballs is good practice if the team distributes `.tar.gz` or `.deb` packages. This would require one additional secret (`GPG_SIGNING_KEY`) and a small step in the release workflow.
+### 5.6 Release-bot GitHub App
+
+The beta scheduler pushes merge commits to `release/X.Y` and dispatches workflows as the release-bot App. Create a GitHub App under the WSJTX organization (Org Settings → Developer settings → GitHub Apps → New GitHub App). Make its webhook inactive, subscribe it to no events, choose "Only on this account", and give it these repository permissions:
+
+- **Actions:** Read and write, to dispatch workflows and read their runs and artifacts
+- **Contents:** Read and write, to push to `release/X.Y`
+- **Workflows:** Read and write, because `develop` merges routinely change `.github/workflows/*`
+
+Install the App on `WSJTX/wsjtx-internal` only ("Only select repositories"). Each scheduler workflow mints a token for the repository it runs in, so no other installation is used. Generate a private key for the App, then store its credentials in the private `beta-automation` environment:
+
+```bash
+# The App's numeric ID or its client ID, from the App's settings page:
+gh variable set RELEASE_BOT_APP_ID --repo WSJTX/wsjtx-internal --env beta-automation --body '<app-id>'
+
+# The .pem private key downloaded from the App's settings page:
+gh secret set RELEASE_BOT_PRIVATE_KEY --repo WSJTX/wsjtx-internal --env beta-automation < release-bot.private-key.pem
+```
+
+Delete the downloaded `.pem` file after setting the secret.
+
+The App has no ruleset bypass: its merge pushes to `release/X.Y` are fast-forwards. Failure alerts use each workflow's `GITHUB_TOKEN` with `issues: write`, so the App needs no issue permission.
+
### Verification: Credential Boundaries
-Confirm `CROSS_REPO_TOKEN` exists only in private environment `source-promotion`; Apple material only in public environment `apple-release-signing`; and `SIGNPATH_API_TOKEN` only in public environment `windows-release-signing`. The `public-release` environment is an approval boundary and contains no signing-key material.
+Confirm that `CROSS_REPO_TOKEN` exists only in the private `source-promotion` environment, with no repository-level copy, and that `wsjtx-internal` holds no `SIGNPATH_API_TOKEN`. `RELEASE_BOT_APP_ID` and `RELEASE_BOT_PRIVATE_KEY` belong only in private environment `beta-automation`, and `BETA_AUTOMATION` is a repository variable of `wsjtx-internal` alone. Apple material belongs only in public environment `apple-release-signing`, and `SIGNPATH_API_TOKEN` belongs only in public environment `windows-release-signing`. Only the final public `publish` job uses the `public-release` or `beta-release` environment.
+
+```bash
+# Repository level: no CROSS_REPO_TOKEN or SIGNPATH_API_TOKEN; BETA_AUTOMATION is a variable here:
+gh secret list --repo WSJTX/wsjtx-internal
+gh variable list --repo WSJTX/wsjtx-internal
+
+# Environment level:
+gh secret list --repo WSJTX/wsjtx-internal --env source-promotion
+gh secret list --repo WSJTX/wsjtx-internal --env beta-automation
+gh variable list --repo WSJTX/wsjtx-internal --env beta-automation
+
+# Public repository level: no signing secrets and no BETA_AUTOMATION:
+gh secret list --repo WSJTX/wsjtx
+gh variable list --repo WSJTX/wsjtx
+```
---
@@ -488,13 +669,13 @@ Both entitlements are currently applied as one set, including to executables tha
Bundle signing re-signs the main executable, so it must receive the entitlement file again after nested code is signed. `codesign --verify` validates signature integrity but does not prove that required entitlements are present. Inspect the effective entitlements and exercise audio capture and a decoder cycle when validating a release.
-### `Darwin/com.wsjtx.sysctl.plist`
+### macOS decoder shared memory
-The macOS installer package copies this into `/Library/LaunchDaemons/` to configure shared memory limits (required for WSJT-X interprocess communication). Check if it exists:
-
-```bash
-ls -la Darwin/com.wsjtx.sysctl.plist
-```
+The decoder uses native POSIX shared memory. The installer does not ship a
+System V sysctl launch daemon or change system shared-memory limits, and CI
+runs decoder and GUI tests without raising those limits. Existing settings
+from older installations are left in place for applications that may still
+need them.
### OmniRig type-library input
@@ -531,7 +712,7 @@ git push -u origin ci/github-actions
gh pr create \
--repo WSJTX/wsjtx-internal \
--title "Add GitHub Actions CI/CD" \
- --body "Five-platform CI (macOS arm64, macOS x86_64, Linux x86_64, Linux aarch64, Windows x86_64) with tag-triggered releases (\`build/v*\`)."
+ --body "Six-platform CI (macOS arm64, macOS x86_64, Linux x86_64, Linux aarch64, Linux armhf, Windows x86_64) with tag-triggered releases (\`build/v*\`)."
```
**Important note about forks:** Workflow files in PRs from forks don't run automatically — this is a GitHub security feature. The PR must be merged before the workflows will trigger. This means you can't test the CI from a fork PR. If you need to test before merging, use a branch on the official repo (Option A).
@@ -611,25 +792,79 @@ git push
Only do this after CI is green on all six targets.
+### Procedures by channel
+
+Steps 1 to 6 are the RC and GA procedure. A beta runs the same workflows with no human step, as [Scheduled Beta Releases](#10-scheduled-beta-releases) describes. The channels differ as follows:
+
+| Aspect | Beta | RC | GA |
+|-------|------|----|----|
+| Metadata | `channel=BETA`, `prerelease=N`, `windows_signing=unsigned`, set by the [line-start commit](#starting-a-release-line) or a scheduler merge commit | A reviewed commit: `channel=RC`, `prerelease=N`, `windows_signing=unsigned` | A reviewed metadata-only commit: `channel=GA`, with no `windows_signing` |
+| Candidate | `operation=create`, dispatched by `beta-continue.yml` after the cut's push CI succeeds, or by `beta-cut.yml` for `beta1` and a retry at a green tip | A release manager runs `operation=validate`, then `operation=create` | As for RC |
+| Promotion | `operation=promote`, dispatched by `beta-continue.yml` after the candidate succeeds; its `validate` job runs first | A release manager runs `operation=validate`, then `operation=promote` | As for RC |
+| Publication | Through `beta-release`, with no approval | After approval in `public-release` | After approval in `public-release` |
+| GitHub Release | Prerelease; never Latest | Prerelease | Release; Latest only for the newest GA version on the newest line |
+| Windows installer | Unsigned ([Beta signing](#beta-signing)) | Unsigned | SignPath Foundation Authenticode |
+| macOS package | The unsigned validation package, published as-is | The unsigned validation package in manual mode; distribution mode signs it as for GA | Signed in distribution mode; signed by hand and replaced in manual mode |
+
### Step 1: Prepare Release Metadata
-On `release/X.Y`, commit the numeric version and matching `DEVEL`, `RC n`, or `GA` state in `release-state.txt`. For `3.2.0-rc1`, use `version=3.2.0`, `channel=RC`, and `rc=1`. Leave its `$Format:%H$` revision placeholder intact so Git substitutes the source SHA when exporting an archive. Wait for branch CI before tagging. This metadata commit is required even when GA application source is otherwise identical to the last RC, because it makes builds from GitHub's source archives identify themselves correctly.
+On `release/X.Y`, commit the numeric version and matching `RC N` or `GA` state in `release-state.txt`. A line's first `BETA` state comes from its [line-start commit](#starting-a-release-line), and the scheduler writes the rest. Set `windows_signing=unsigned`, the source-pinned unsigned mode, in every RC metadata commit, including the freeze commit that sets `RC 1`. For `3.3.0-rc1`, use `version=3.3.0`, `channel=RC`, `prerelease=1`, and `windows_signing=unsigned`. The GA metadata commit omits `windows_signing`, which selects SignPath. Leave the `$Format:%H$` revision placeholder intact so Git substitutes the source SHA when exporting an archive. Wait for branch CI before tagging. This metadata commit is required even when GA application source is otherwise identical to the last RC, because it makes builds from GitHub's source archives identify themselves correctly.
### Step 2: Build the Private Candidate
-Run **Prepare Release Candidate** from the `release/X.Y` branch at the expected SHA. Supply the version and full SHA with `operation=validate`; review its summary, then repeat with `operation=create`. The latter creates immutable `build/v...` and calls `release.yml` inside the same workflow run. That run uploads private validation artifacts without publishing or copying source.
+Commit the reviewed [Linux image selection](#prepared-linux-release-images) before creating the candidate. A line frozen from its beta phase carries the scheduler's selection, which the freeze commit's review covers ([Pause and freeze](#pause-and-freeze)); prepare a new one only when Prepare Release Candidate reports a stale recipe.
+
+Run Prepare Release Candidate on `release/X.Y` at the expected SHA. Use `operation=validate` first and review the summary, then use `operation=create`. This creates the immutable `build/v...` tag and private validation artifacts. It does not publish or copy source.
### Step 3: Approve Public Source Promotion
-Inspect the successful Prepare Release Candidate run and record its run ID. From the same `release/X.Y` branch and SHA, run **Promote Release Source** with that run ID, version, and `operation=validate`; after reviewing the checks, repeat with `operation=promote`. The workflow creates public `v...` at the same SHA and starts the public distribution builds. RC promotion leaves public `master` unchanged; GA promotion advances it with a guarded, fast-forward-only update.
+Record the candidate run ID. From the same branch and SHA, run Promote Release Source with `operation=validate`; review the summary, then run it with `operation=promote`. Promotion atomically creates the immutable public tag and creates or fast-forwards `release/X.Y` at the candidate SHA, following the [public branch policy](#public-branch-history-and-ga-line-policy). Conflicting tags and non-fast-forward updates fail without changing refs. If public refs change after validation, validate again.
+
+### Step 4: Review and Approve Final Publication
+
+After the builds finish, review the Verified public release bundle summary before approving. It lists the tag, source SHA, run link, signing modes, assets, and checksums. In manual macOS signing mode, the summary identifies the manually replaceable macOS packages, which are excluded from `SHA256SUMS`. For a GA release, a SignPath approver must approve the `release-signing` request that the public build submits. The `sign` job waits up to 60 minutes, then fails; [Step 6](#step-6-recover-safely) covers the re-run. A GA's Windows signing mode is `signpath`, and a macOS package signed in distribution mode must be Developer ID-signed, notarized, stapled, and pass Gatekeeper. An RC shows Windows signing as source-pinned unsigned and needs no SignPath.
+
+Once the bundle is ready, approve the final `publish` job in `public-release`. One approval from a member of the `release-approvers` team is enough. With Prevent self-review off, the person who promoted the source can approve the same run. The job rechecks the bundle and tag before publishing. Betas and RCs are prereleases. Only the newest GA version on the newest line gets Latest; other GA releases use `--latest=false`.
+
+### Public branch history and GA line policy
+
+Promotion publishes only the validated candidate SHA. Public tags are immutable; release branches contain only promoted commits and must advance by ancestry.
+
+- Betas and RCs advance `release/X.Y` and leave `master` unchanged.
+- A GA on the newest line also fast-forwards `master`.
+- An older-line GA leaves `master` and GitHub Latest unchanged.
+
+Determine the newest GA line from the highest numeric `X.Y` in public GA tags, ignoring betas, RCs, and release dates. Reject a GA below the highest GA tag on its line. Only the newest GA version on the newest line can become Latest. Stop if GA tags are missing or refs are malformed.
+
+Promotion enforces strict ordering on each line: a new public tag must sort above the latest public tag on its `X.Y` line. Versions compare by `X.Y.Z`, then by channel, `BETA` < `RC` < `GA`, then by `N` as a number, so `v3.3.0-beta2` < `v3.3.0-beta10` < `v3.3.0-rc1` < `v3.3.0` < `v3.3.1-beta1`. Promoting the line's latest candidate again is idempotent: its tag already resolves to the candidate SHA, so promotion creates no tag.
-### Step 4: Review and Approve Publication
+The promotion workflow creates a missing `release/X.Y` branch. If that line already has public GA, RC, or beta tags, the candidate must descend from its latest tag. Do not seed public release branches manually. Subsequent candidates must descend from the existing branch.
-Confirm every public target build and report is green. Windows RC and GA installers must be SignPath release-signed. In hosted-signing mode, macOS RC and GA packages must be Developer ID-signed, notarized, stapled, and Gatekeeper-accepted before publication.
+Before a newest-line GA, verify that public `master` is an ancestor of the candidate. If it is not, stop and review the divergent history and tree differences. Reconcile the ancestry on the private release branch through a reviewed manual merge, verify that the resulting tree matches the intended release source, and rerun private CI and candidate validation. Promotion never creates this merge or force-rewrites public history.
-If `MACOS_DISTRIBUTION_SIGNING_ENABLED` is false, inspect and approve the validated unsigned packages for publication. After publication, download both `.pkg` assets, sign and notarize them outside GitHub, verify their signatures and installed behavior, then replace the release assets without changing their filenames. They are intentionally absent from `SHA256SUMS`; the manifest records them as manually replaceable. After the `apple-release-signing` environment is fully populated, enable the variable for future tags.
+After each GA, merge the GA commit into private `develop`. This history bridge lets the next line's GA fast-forward public `master`. The internal repository holds the GA commit as `build/vX.Y.Z` and on private `release/X.Y`; the public `vX.Y.Z` tag exists only on `WSJTX/wsjtx`.
-Download the `release-bundle-<version>` workflow artifact, then approve the waiting `public-release` environment only after its manifest, asset hashes, source SHA, and signing reports agree. Verify that an RC is marked prerelease and does not move `master`; verify that GA is the latest release and does move `master`.
+1. On a branch from private `develop`, merge `build/vX.Y.Z` without committing.
+2. Keep `develop`'s `release-state.txt`, and remove `release-linux-images.json` from the merge.
+3. Resolve any other conflict to `develop`'s side.
+4. Run `git diff --cached HEAD --stat`. When the release branch holds nothing that `develop` lacks, the merged tree equals `develop`'s and the command prints nothing. Each file it lists holds something the merge took from the release branch alone. It can be a block Git duplicated without a conflict marker (such as a Python test method), a change that `develop` later reverted, or a fix made only on the release branch. Restore `develop`'s version with `git restore --source=HEAD --staged --worktree -- <path>`, which also removes a file `develop` does not have, unless it is a release-only fix that `develop` also needs.
+5. Commit, and land the merge on `develop` as a merge commit. A squash or rebase merge leaves the GA commit out of `develop`'s history.
+
+```bash
+# Steps 1 and 2:
+git fetch origin develop "refs/tags/build/vX.Y.Z:refs/tags/build/vX.Y.Z"
+git switch --no-track -c history-bridge-X.Y.Z origin/develop
+git merge --no-ff --no-commit build/vX.Y.Z
+git checkout HEAD -- release-state.txt
+git rm -q -f --ignore-unmatch release-linux-images.json
+
+# Step 4, after resolving conflicts:
+git diff --cached HEAD --stat
+```
+
+After promotion, verify that the public release branch and tag resolve to the candidate SHA. For a newest-line GA, check `master` too. For an older-line GA, confirm that `master` and GitHub Latest did not change. Public release-branch pushes skip CI; private release-branch pushes and pull requests run the default Linux x86_64 check.
+
+If `MACOS_DISTRIBUTION_SIGNING_ENABLED` is false, after a GA publication download both `.pkg` assets, sign and notarize them outside GitHub, verify their signatures and installed behavior, then replace the assets without changing their filenames (`gh release upload vX.Y.Z wsjtx-X.Y.Z-arm64-macOS.pkg wsjtx-X.Y.Z-x86_64-macOS.pkg --clobber --repo WSJTX/wsjtx`). They are intentionally absent from `SHA256SUMS`; the manifest and assemble summary identify them as manually replaceable. Enable the variable after the `apple-release-signing` environment is fully configured.
### Step 5: Verify the Artifacts
@@ -638,55 +873,181 @@ Download the release artifacts to a new directory:
```bash
RELEASE_DIR="$(mktemp -d)"
gh release download "v$VERSION" --repo WSJTX/wsjtx --dir "$RELEASE_DIR"
-PKG="$RELEASE_DIR/wsjtx-${VERSION}-arm64-macOS.pkg"
```
-Verify the installer signature, stapled notarization ticket, and Gatekeeper policy independently:
+Verify both architectures. For each signed package, check its installer signature, stapled notarization ticket, and Gatekeeper policy independently; skip these three checks for unsigned validation packages:
```bash
-pkgutil --check-signature "$PKG"
-xcrun stapler validate "$PKG"
-spctl --assess --type install --verbose=2 "$PKG"
+for ARCH in arm64 x86_64; do
+ PKG="$RELEASE_DIR/wsjtx-${VERSION}-${ARCH}-macOS.pkg"
+ pkgutil --check-signature "$PKG"
+ xcrun stapler validate "$PKG"
+ spctl --assess --type install --verbose=2 "$PKG"
+done
```
-Success requires a valid Developer ID Installer chain, a valid staple, and an `accepted` Gatekeeper assessment. These checks do not validate nested application signatures, entitlements, or runtime behavior.
+For a signed package, success requires a valid Developer ID Installer chain, a valid staple, and an `accepted` Gatekeeper assessment. These checks do not validate nested application signatures, entitlements, or runtime behavior.
Inspect the packaged application rather than the staged build tree:
```bash
-EXPANDED="$RELEASE_DIR/expanded"
-pkgutil --expand-full "$PKG" "$EXPANDED"
-APP="$EXPANDED/wsjtx-component.pkg/Payload/Applications/wsjtx.app"
-
-codesign --verify --deep --strict --verbose=2 "$APP"
-codesign -d --entitlements :- "$APP/Contents/MacOS/wsjtx"
-codesign -d --entitlements :- "$APP/Contents/MacOS/jt9"
+for ARCH in arm64 x86_64; do
+ PKG="$RELEASE_DIR/wsjtx-${VERSION}-${ARCH}-macOS.pkg"
+ EXPANDED="$RELEASE_DIR/expanded-$ARCH"
+ pkgutil --expand-full "$PKG" "$EXPANDED"
+ APP="$EXPANDED/wsjtx-component.pkg/Payload/Applications/wsjtx.app"
+
+ codesign --verify --deep --strict --verbose=2 "$APP"
+ codesign -d --entitlements :- "$APP/Contents/MacOS/wsjtx"
+ codesign -d --entitlements :- "$APP/Contents/MacOS/jt9"
+done
```
Signature verification must succeed, and both inspected executables must contain the two keys in `entitlements.plist`. The effective-entitlement check detects an outer bundle re-sign that preserved a valid signature but removed the executable entitlements.
-Finally, install the package on a disposable or release-test macOS system and launch the installed app through Finder. Confirm that macOS grants audio input after the usage prompt, the receive level responds to live input, and `jt9` completes a decode cycle without a hardened-runtime or dynamic-loader failure. A successful signing or notarization check does not establish these runtime properties.
+Finally, install each architecture's package (an unsigned package as [Beta signing](#beta-signing) describes) on a matching disposable or release-test macOS system and launch the installed app through Finder. Confirm that macOS grants audio input after the usage prompt, the receive level responds to live input, and `jt9` completes a decode cycle without a hardened-runtime or dynamic-loader failure. A successful signing or notarization check does not establish these runtime properties.
### Step 6: Recover Safely
-Rerun jobs against the immutable tag for transient signing, notarization, or service failures. If source or metadata changes, make a new commit and cut the next RC. Do not clean up a failed attempt by moving or recreating either tag; retaining the original identity preserves the audit trail and prevents an already downloaded release name from silently changing meaning.
+Rerun jobs against the immutable tag for transient signing, notarization, or service failures. If source or metadata changes, make a new commit and cut the next RC. For a beta, the scheduler retries or advances the number itself, and [Recovery](#recovery) lists what a person does. Do not clean up a failed attempt by moving or recreating either tag; retaining the original identity preserves the audit trail and prevents an already downloaded release name from silently changing meaning.
+
+---
+
+## 10. Scheduled Beta Releases
+
+Betas are unattended weekly prereleases of `develop`, published from the single `release/X.Y` in `BETA` state. The beta scheduler is two workflows. `beta-cut.yml` (Scheduled Beta Cut) applies the [state machine](#state-machine); each of its runs is a cut. `beta-continue.yml` (Scheduled Beta Continue) is the continuation, which chains the runs that follow. A beta's GitHub Release body holds GitHub's generated release notes, preceded by a Quick Downloads list. The channel model is in [Release channels](#release-channels).
+
+> **Unattended publication.** No person reviews a beta before it is public. Each beta carries the newest green `develop`, including its workflow changes, which the release-bot App merges onto the release line.
+
+After each beta publishes ([Schedule](#schedule)), a release manager emails the mailing list with its GitHub Release link, a short summary of what is ready for testing and feedback, and how to open its unsigned packages ([Beta signing](#beta-signing)).
+
+### Schedule
+
+`beta-cut.yml` runs every Tuesday at 20:00 UTC (cron `0 20 * * 2`), which is 16:00 US Eastern daylight time or 15:00 Eastern standard time. The Tuesday cut leaves Monday for fixes to land on `develop`. CI, the candidate, and the public builds then take about two to three hours, so a beta publishes on Tuesday evening, US Eastern time.
+
+GitHub starts scheduled runs late under load, often by 10 to 20 minutes at the start of an hour, and can drop a run. A dropped run means no cut and no alert that week; dispatch Scheduled Beta Cut to cut the beta.
+
+### Workflows
+
+`beta-cut.yml` runs on its cron and on `workflow_dispatch`, which takes no inputs. Dispatch it on `develop`, the only branch the `beta-automation` environment admits (`gh workflow run beta-cut.yml --repo WSJTX/wsjtx-internal --ref develop`). `beta-continue.yml` runs on `workflow_run` when a CI, Prepare Release Candidate, Prepare Release Dependencies, or Promote Release Source run completes on `develop` or a release branch. Both workflows need the settings in [Required Repository Configuration](#required-repository-configuration).
+
+Each workflow has a `gate` job, which checks the [pause switch](#pause-and-freeze), and one acting job in the private `beta-automation` environment. The acting job mints a release-bot App token from the `RELEASE_BOT_APP_ID` variable and the `RELEASE_BOT_PRIVATE_KEY` secret in `beta-automation`.
+
+The two acting jobs share the concurrency group `beta-scheduler` without cancellation, so only one acts at a time. GitHub keeps at most one waiting job per group, and a newer arrival replaces it. The next cut resumes a continuation lost that way, or reports it when a promotion was never dispatched; a cut lost that way does nothing that week, as with a dropped schedule.
+
+### State machine
+
+Each cut re-derives its state from refs, run history, the public release, image package tags, and workflow artifacts, and applies one step. A cut acts by pushing a merge commit or dispatching a workflow, skips with a note in the job summary, or stops and [alerts](#failure-alerts). Two rules apply throughout:
+
+- **Newest green `develop`.** The newest `develop` commit whose push CI succeeded; the cut does not wait for a `develop` push CI run in progress. Push CI on `develop` and on `release/X.Y` builds Linux x86_64 only; the candidate builds every target.
+- **Runs in progress.** A CI, candidate, promotion, or preparation run that the cut depends on may still be in progress. If the App started it, the cut skips, because the continuation resumes when it finishes. If a person started it, the cut stops and asks for Scheduled Beta Cut to be dispatched after that run finishes. A public build in progress is always a skip.
+
+The steps:
+
+1. The cut finds the single `release/X.Y` in `BETA` state. With none, as between a freeze and the next line's start, it skips. It stops and alerts when two or more lines are in `BETA` state, or when a line's `BETA` state does not validate or names another line's version.
+2. When `build/vX.Y.Z-betaN` for the line's `BETA N` does not exist, N is unspent, because a number is spent only once its build tag exists. After the check in step 4, the cut reads the tip's CI:
+ - It passed: the cut dispatches Prepare Release Candidate at the tip with no merge. This is how `beta1` is cut, and how a candidate that failed before pushing its tag is retried.
+ - It did not succeed: the cut merges the newest green `develop` under the same N, through steps 5 and 6. If `develop` has no green commit newer than the tip, the cut stops and alerts.
+ - It never ran: the cut stops and alerts.
+3. When the build tag exists, the cut checks public `vX.Y.Z-betaN`:
+ - Published: the cut merges the newest green `develop` as N+1, through steps 4 to 6. If that commit is already on `release/X.Y`, the cut skips with no alert, even when newer `develop` commits exist whose push CI failed or is still running. If no `develop` commit has a successful push CI run, it stops and alerts.
+ - Not published, with a CI, candidate, or promotion run at the tag or the public build in progress: the cut skips or stops, as the rules above describe.
+ - The candidate failed after pushing its tag, and no promotion succeeded: N is spent, because build tags never move. The cut merges a newer green `develop` as N+1, or stops and alerts when there is none ([Recovery](#recovery)).
+ - No candidate run, a successful candidate with no promotion run, or a failed promotion: the cut stops and alerts, naming the stage.
+ - A public build that never started, failed, or succeeded without a published release: the cut stops and alerts at the publication stage.
+4. Before it dispatches a candidate at the tip or merges `develop`, the cut checks that fixes landed on `develop` first. It lists the commits on `release/X.Y` that `develop` does not contain. The App's commits, identified by their author, are exempt. So are commits that change only `release-state.txt` or `release-linux-images.json`, such as the line-start commit. Any other commit stops the line and alerts. A cherry-pick or a person's commit on the beta line therefore stops it until that commit is reachable from `develop` ([Recovery](#recovery)). For an urgent fix in the beta phase, land it on `develop` and, once its push CI passes, dispatch Scheduled Beta Cut, which cuts the next beta at once when the current one is published.
+5. Before a merge, the cut compares the Linux image recipe fingerprints of the chosen `develop` commit with the line's `release-linux-images.json`; its alerts call this selection the lock:
+ - They match: the cut keeps the selection unchanged.
+ - They differ, or the selection is missing: the cut picks the validated image generation built for those recipes. It reuses a successful Prepare Release Dependencies run for that generation, or dispatches one on `develop` and skips. When that App-started preparation succeeds, the continuation dispatches the cut again, and that cut commits the prepared selection.
+ - No generation matches, including while matching images are still being refreshed: the cut stops and alerts. It also stops when the newest preparation failed and none is usable, or when a preparation is needed but the `develop` tip's recipes differ from the chosen commit's.
+6. The cut merges the chosen `develop` commit into the tip with `git merge --no-ff`. It writes `release-state.txt` with the line's own version, `channel=BETA`, the chosen number, and `windows_signing=unsigned`, and writes the kept or prepared selection. Conflicts in those two files are resolved by overwriting them; a conflict in any other file stops and alerts. The merged tree's selection must pass `release-linux-images.py validate --check-remote`, or the cut stops and alerts. The App authors and commits the merge and pushes it to `release/X.Y` as a fast-forward, never with force; a rejected push stops and alerts. That push starts the CI run that the [continuation](#continuation) follows.
+
+### Continuation
+
+The continuation acts only on completed runs the App started: CI, candidate, and promotion runs on the line's `release/X.Y` at its current tip, and Prepare Release Dependencies runs on `develop`. A person's re-run of such a run counts. The continuation skips every other run.
+
+| Completed Run | Action |
+|---------------|--------|
+| Push CI succeeded | Dispatch Prepare Release Candidate with `operation=create` at the tip, unless the build tag exists or a candidate is running |
+| Candidate succeeded, its tag at the tip | Dispatch Promote Release Source with `operation=promote` and that candidate run's ID |
+| Promotion succeeded | None; the public repository's release workflow publishes the beta |
+| Preparation succeeded | Dispatch Scheduled Beta Cut on `develop` |
+
+The continuation alerts at once when a push CI, candidate, promotion, or preparation run concludes other than success, and when a candidate's tag is not at the tip.
+
+### Beta signing
+
+Beta installers and packages are unsigned. A `BETA` state must carry `windows_signing=unsigned`, because SignPath Foundation requires a manual approval for every signed release; `release-policy.py` rejects any other mode. The SignPath signing job therefore never runs for a beta. A beta's macOS package is the unsigned validation package whatever `MACOS_DISTRIBUTION_SIGNING_ENABLED` says. Each unsigned macOS package is published as-is and is not replaceable, so `SHA256SUMS` covers it, and the release manifest records `macos_signing.mode` as `unsigned`. [Procedures by channel](#procedures-by-channel) gives RC and GA signing. Linux packages are unsigned on every channel.
+
+macOS Gatekeeper rejects an unsigned package that a browser downloaded. To install an unsigned beta or RC package, remove the quarantine attribute first (`xattr -d com.apple.quarantine wsjtx-<ver>-arm64-macOS.pkg`), or open it once and then choose Open Anyway in System Settings > Privacy & Security. Windows SmartScreen can warn on an unsigned installer; choose More info, then Run anyway.
+
+### Failure alerts
+
+Every stop and unexpected failure of a cut or the continuation goes to one tracking issue in `WSJTX/wsjtx-internal`, titled "Scheduled beta alerts". `github-actions[bot]` opens the issue, or comments on the open one, with the stage, the reason, and the run link. Closing the issue makes the next alert open another. Skips appear only in the job summary.
+
+The continuation alerts at once in the cases [Continuation](#continuation) lists and on the line errors in [state machine](#state-machine) step 1. Every other stop in the state machine is reported only when a cut runs: on the Tuesday cron, on a dispatch, or after a preparation. A public build that failed or never started is therefore reported only by the next cut, up to a week later. To check sooner, read the public run with `gh run list --repo WSJTX/wsjtx --workflow public-release.yml`. A dispatch of Scheduled Beta Cut also reports it, but cuts N+1 at once when N is published and `develop` has a newer green commit.
+
+### Pause and freeze
+
+`BETA_AUTOMATION` is a repository variable on `WSJTX/wsjtx-internal`; the gate jobs that read it have no environment. Both workflows act only when it is exactly `enabled`. With any other value, or unset, they do nothing and say so in the job summary, with no alert. Set it with `gh variable set BETA_AUTOMATION --repo WSJTX/wsjtx-internal --body enabled` once the release-bot App's credentials are in `beta-automation`. Each acting job mints the App token first, so a missing credential fails the job and alerts. Pause with any other value, for example `--body paused`. Never set it on `WSJTX/wsjtx`: promoted source carries the beta workflows there.
+
+Pausing also stops the continuation, so a beta in progress halts at its current stage. A beta already promoted still publishes, because the public build has no pause switch. Once `BETA_AUTOMATION` is `enabled` again, the next cut resumes from a push CI that passed or from a prepared selection; dispatch Scheduled Beta Cut to resume at once instead of on Tuesday. A candidate that succeeded with no promotion stops the cut, which asks for a dispatch of Promote Release Source; dispatch it on `release/X.Y` with the version, `operation=promote`, and the candidate run ID that the alert names. That promotion downloads the candidate run's artifact, which is kept 30 days.
+
+To freeze a line, land a reviewed commit on `release/X.Y` that sets `RC 1` and keeps `windows_signing=unsigned`, as in [Step 1](#step-1-prepare-release-metadata). Its review also covers the line's `release-linux-images.json`, which the scheduler maintained without review. The scheduler acts only on `BETA` state, so it stops. After the freeze, bump `develop` to `X.(Y+1).0` in a one-line PR, and publish `samples/contents_X.(Y+1).json` to `feat-web-pages` as the [sample catalog procedure](DEVELOPMENT_WORKFLOW.md#3-promote-the-exact-source) describes. A beta not yet promoted is abandoned: the continuation finds no `BETA` line and skips, and a promotion that validates after the freeze fails because the tip moved; one already promoted still publishes. The line continues through RC and GA as in [Phase 7](#9-phase-7-test-the-release-pipeline).
+
+A patch release on an existing line never uses `BETA` state. It uses `RC N` metadata commits and cherry-picked fixes, because a `BETA` state would make the scheduler merge the newest green `develop` into the line.
+
+### Starting a release line
+
+Cut `release/X.Y` from a green `develop`. Then land the line-start commit, a reviewed commit that changes only `release-state.txt` and `release-linux-images.json`. The state is `BETA 1` for the line's version (`channel=BETA`, `prerelease=1`, `windows_signing=unsigned`), and the selection is the one prepared as [Prepared Linux release images](#prepared-linux-release-images) describes. For that preparation, choose a `validated-build-YYYYMMDD-RUN-ATTEMPT` generation that all four `ghcr.io/wsjtx/wsjtx-internal/<package>` images carry, from a Refresh Build Caches or Publish Linux CI Images run on `develop` built for the line's recipes. List a package's tags with a token that has the `read:packages` scope:
+
+```bash
+# Tags of one internal image package, here linux-noble:
+gh api orgs/WSJTX/packages/container/wsjtx-internal%2Flinux-noble/versions --jq '.[].metadata.container.tags[]'
+```
+
+The line's sample catalog, `samples/contents_X.Y.json`, is already on Pages: it was published when `develop` took version `X.Y.0`.
+
+The next cut finds `build/vX.Y.Z-beta1` missing and cuts `beta1` at the tip ([state machine](#state-machine) step 2). If the line-start commit's CI is still running at the cut, the cut stops and asks for a dispatch; dispatch Scheduled Beta Cut once that CI passes. From then on the scheduler cuts every beta. Push to the line only commits that change nothing but `release-state.txt` and `release-linux-images.json`; any other commit stops the line ([state machine](#state-machine) step 4). Such a push while a beta is in flight moves the tip: the continuation then ignores that beta's runs, and the beta waits for the next cut.
+
+### Recovery
+
+Most stop messages name the action to take. Re-running a failed run that the App started resumes the chain through the continuation. For a CI, candidate, or promotion run the `release/X.Y` tip must be unmoved: the continuation ignores runs at an older commit, and candidate and promotion runs also check the tip. For other stops, fix the cause, then dispatch Scheduled Beta Cut on `develop`. Never move or recreate a tag; see [Step 6](#step-6-recover-safely).
+
+When a candidate fails after pushing its tag, land the fix on `develop` before the next cut, and confirm it on the failing target with `full-ci` or a dispatched CI run. A newer green `develop` commit without the fix spends N+1 too.
+
+A fixes stop ([state machine](#state-machine) step 4) clears only when the listed commits are reachable from `develop`. Landing the same fix on `develop` or reverting the commit on the line does not clear it, and the rulesets forbid removing the commit. To clear it, merge the `release/X.Y` tip (`origin/release/X.Y`) into `develop` with the [history-bridge](#public-branch-history-and-ga-line-policy) steps: keep `develop`'s `release-state.txt`, drop `release-linux-images.json`, run the bridge's tree check, and land the reviewed PR as a merge commit. A squash or rebase merge leaves the commit unreachable from `develop`, and the stop stays. When the next cut merges `develop`, it rewrites both files on the line.
+
+For a failed public build, re-run the failed jobs of Build and Publish Public Release in `WSJTX/wsjtx`:
+
+```bash
+# Re-run only the failed jobs of the public build:
+gh run rerun <RUN_ID> --failed --repo WSJTX/wsjtx
+```
+
+A successful re-run publishes the beta, and the next cut moves on to N+1 when `develop` has a newer green commit. Once the release exists, re-run only the failed jobs: the publish job refuses any asset whose bytes differ from the published one. Nothing starts a new public build for an existing tag, because the public build runs only on a tag push and tags never move. A public build that never started, or that fails at its tag for a reason in the tagged source, therefore stops the line at publication every week. The stop lasts until `vX.Y.Z-betaN` has a published GitHub Release or the line's state moves past `BETA N`. GitHub allows a re-run only within 30 days of a run's first attempt; after that a failed public build stops the line like one that never started.
+
+### Actions minutes
+
+The estimate for each beta with Apple silicon as the only macOS build is 125 to 135 private-repository minutes, about $1.40 at the rates in [where CI runs](DEVELOPMENT_WORKFLOW.md#where-ci-runs), or about 500 to 680 included minutes for four or five betas a month. These estimates need remeasurement with both macOS architectures. A cold macOS dependency build can run to the 180-minute macOS budget in [Cache readiness](#cache-readiness). The public builds run in `WSJTX/wsjtx`, where standard GitHub-hosted runners are free.
---
-## 10. Ongoing Maintenance
+## 11. Ongoing Maintenance
### Secret Rotation
| Secret | Rotation Schedule | How to Rotate |
|--------|-------------------|---------------|
-| `CROSS_REPO_TOKEN` | Before expiry (check token settings at github.com) | Generate new PAT → update private environment `source-promotion` |
+| `CROSS_REPO_TOKEN` | Before expiry (check token settings at github.com) | Generate new PAT → update the secret in private `source-promotion`; a new owner must first be the identity allowed to create public `v*` tags. `operation=validate` does not use the token |
+| Release-bot App private key | On team schedule, personnel change, or suspected exposure | Generate a new key in the App's settings → update `RELEASE_BOT_PRIVATE_KEY` in `beta-automation` → delete the old key |
| App Store Connect API key | On team schedule, personnel change, or suspected exposure | Revoke the old key, create a team-owned replacement, and update `apple-release-signing` |
| macOS signing certificates (.p12) | When certificate expires (typically 5 years) | Export new cert from Keychain → base64-encode → update both P12 and PASSWORD secrets |
| SignPath API token | On SignPath schedule, submitter change, or suspected exposure | Replace the public-repo token; the signing key remains in SignPath's HSM |
### Version Bumps
-Before creating an RC or GA candidate, commit the numeric version and matching release channel/RC number in `release-state.txt`. Workflows derive their build inputs from that tracked state and reject a mismatched tag; do not maintain duplicate per-platform version literals.
+Before creating an RC or GA candidate, commit its release identity in `release-state.txt` as [Step 1](#step-1-prepare-release-metadata) describes; beta states come from the [line-start commit](#starting-a-release-line) and the scheduler's merge commits. Workflows derive their build inputs from that tracked state and reject a mismatched tag; do not maintain duplicate per-platform version literals.
```bash
# Review the tracked release identity before running Prepare Release Candidate:
@@ -720,11 +1081,11 @@ When modifying workflow files, keep in mind:
### Branch, Tag, and Environment Protection
-Protect `develop` and `release/*` from force-push and deletion, and apply the team's normal CI/review policy. The two manual helper workflows must be run from the current protected `release/X.Y` tip; they reject any other workflow ref or SHA.
+Protect `develop` with a ruleset that forbids force-push and deletion, and apply the team's normal CI and review policy to it. Protect `release/*` with rulesets that forbid force-push and deletion. Do not add a pull-request requirement: the release-bot App has no bypass, and its merge pushes would fail. Run the two helper workflows from the current `release/X.Y` tip. Promote Release Source rejects any workflow ref or SHA other than that tip. Prepare Release Candidate rejects any other SHA, and the `candidate-tagging` environment's `release/*` policy rejects other refs.
-On the public repository, add a tag ruleset for `v*` that blocks update and deletion and limits creation to the source-promotion identity. Protect `master` from force-push and deletion. `promote-release.yml` additionally requires GA to advance the prior public `master` and updates the branch and new tag atomically.
+On WSJTX/wsjtx, protect `v*` tags from updates and deletion, and limit creation to the source-promotion identity. Protect `master` and `release/*` from force-pushes and deletion only; promotion pushes them directly, so a pull-request or status-check requirement would block it.
-Restrict `candidate-tagging` and `source-promotion` to protected private `release/*` branches, `apple-release-signing` to public `v*` tags, and `windows-release-signing` to protected public `master` plus `v*` tags. Restrict `public-release` to public `v*` tags and require a reviewer there. These restrictions keep modified workflow code on an arbitrary branch from receiving a release credential. Do not add reviewers to the signing environments unless the team intentionally wants extra approvals; keep the required artifact-publication approval on `public-release`.
+Restrict `candidate-tagging` and `source-promotion` to private `release/*` branches, `apple-release-signing` to public `v*` tags, and `windows-release-signing` to public `master` plus `v*` tags. Restrict `beta-automation` to private `develop`. Configure `public-release` and `beta-release` as [Public Final Publication Approval](#public-final-publication-approval) and [Public Beta Publication](#public-beta-publication) describe.
### Dependabot & Auto-merge Policy
@@ -755,7 +1116,7 @@ Dependabot auto-rebases its PRs when the base branch moves, CI re-runs, and GitH
---
-## 11. Troubleshooting
+## 12. Troubleshooting
### Problem: "refusing to allow an OAuth App to create or update workflow"
@@ -790,7 +1151,7 @@ gh secret set DEVELOPER_ID_CERTIFICATE_P12 --repo WSJTX/wsjtx --env apple-releas
| Log message | Meaning | Fix |
|-------------|---------|-----|
| "The signature of the binary is invalid" | Code signing used wrong identity or missed a binary | Check that all executables and dylibs are signed |
-| "The binary uses an SDK older than the 10.9 SDK" | Deployment target too old | Check `CMAKE_OSX_DEPLOYMENT_TARGET` (11.0 for arm64 per `ci.yml:39`, 10.13 for x86_64 Intel per `ci.yml:50`) |
+| "The binary uses an SDK older than the 10.9 SDK" | Deployment target too old | Check `CMAKE_OSX_DEPLOYMENT_TARGET` (11.0 for arm64, 10.13 for x86_64 Intel, through the `deployment_target` input of `build-macos.yml`) |
| "The signature does not include a secure timestamp" | Missing `--timestamp` in codesign | Verify the codesign commands include `--timestamp` |
### Problem: Windows build fails at OmniRig install
@@ -803,9 +1164,9 @@ gh secret set DEVELOPER_ID_CERTIFICATE_P12 --repo WSJTX/wsjtx --env apple-releas
### Problem: Public source promotion reports a missing token
-**Context:** Promote Release Source stops before it inspects or creates the public tag.
+**Context:** The `promote` job of Promote Release Source stops before it pushes anything to the public repository.
-**Root cause:** The secret is not set, or it's set on the wrong repo, or it's empty.
+**Root cause:** No `CROSS_REPO_TOKEN` value reaches the job: the secret is absent from the private `source-promotion` environment and from the repository and organization secrets, or it is empty. A repository or organization copy would satisfy the job, which is why none should exist ([Verification: Credential Boundaries](#verification-credential-boundaries)).
**Fix:**
```bash
@@ -839,7 +1200,7 @@ gh secret set CROSS_REPO_TOKEN --repo WSJTX/wsjtx-internal --env source-promotio
---
-## 12. Reference: Complete File Inventory
+## 13. Reference: Complete File Inventory
### Files to Include in the PR
@@ -847,22 +1208,27 @@ gh secret set CROSS_REPO_TOKEN --repo WSJTX/wsjtx-internal --env source-promotio
|------|---------|----------------|
| `.github/workflows/ci.yml` | CI orchestrator for `develop` and `release/**` | None |
| `.github/workflows/release.yml` | Reusable private candidate build | None |
+| `.github/workflows/prepare-release-dependencies.yml` | Prepare Release Dependencies: verify and copy the four Linux images and produce `release-linux-images.json` | None |
| `.github/workflows/release-tag-helper.yml` | Validate/create immutable internal candidates | None |
| `.github/workflows/promote-release.yml` | Validate/promote exact source to the public repo | None |
-| `.github/workflows/public-release.yml` | Public signed build, bundle, approval, and GitHub Release | None |
+| `.github/workflows/public-release.yml` | Public policy-checked build, bundle verification, and GitHub Release | None |
+| `.github/workflows/beta-cut.yml` | Scheduled Beta Cut: weekly or dispatched cut of the next beta on the line in `BETA` state | None |
+| `.github/workflows/beta-continue.yml` | Scheduled Beta Continue: carry each App-started beta run to its next stage | None |
| `.github/workflows/sign-windows-release.yml` | Public SignPath build/sign/verification | SignPath project and policy identifiers |
| `.github/workflows/build-macos.yml` | macOS build (parameterized arm64/x86_64) | None |
| `.github/workflows/build-linux.yml` | Linux build (parameterized x86_64/aarch64/armhf) | None |
| `.github/workflows/build-windows.yml` | Windows x86_64 build | None |
| `.github/workflows/hamlib-upstream-check.yml` | Scheduled (weekly cron + `workflow_dispatch`) poll of Hamlib upstream tags; files a tracking issue when a newer 4.x release is available. No platform builds; self-contained. | None |
| `entitlements.plist` | macOS app entitlements | None (if not already in repo) |
-| `Darwin/com.wsjtx.sysctl.plist` | macOS shared memory config | None (if not already in repo) |
-| `release-state.txt` | Tracked version, channel, RC number, and archival revision | Set before each candidate |
-| `.github/scripts/release-policy.py` | Release identity, asset, archive, signing-report, and manifest gates | None |
+| `release-state.txt` | Tracked version, channel, prerelease number, optional Windows signing mode, and archival revision | Set before each RC or GA candidate; the line-start commit and the scheduler set beta states |
+| `.github/scripts/release-policy.py` | Release identity, asset, archive, signing-report, manifest, and public ref promotion policy | None |
+| `.github/scripts/beta-scheduler.py` | Beta scheduler state machine, dispatches, and failure alerts | None |
+| `.github/scripts/release-linux-images.py` | Linux image selection preparation, validation, and provenance | None |
+| `.github/scripts/generate-quick-downloads.py` | Quick Downloads list in the GitHub Release body | None |
### Secrets Required on `wsjtx-internal`
-Use the canonical inventory and setup procedure in [Phase 3](#5-phase-3-create-repository-secrets). Keep `CROSS_REPO_TOKEN` in private environment `source-promotion`, Apple material in public environment `apple-release-signing`, and `SIGNPATH_API_TOKEN` in public environment `windows-release-signing`. No SignPath private key is stored in either repository.
+Use the canonical inventory and setup procedure in [Phase 3](#5-phase-3-create-repository-secrets). `CROSS_REPO_TOKEN` is a secret of the private `source-promotion` environment. The private `beta-automation` environment holds the release-bot App's variable `RELEASE_BOT_APP_ID` and secret `RELEASE_BOT_PRIVATE_KEY`, and repository variable `BETA_AUTOMATION` switches betas on. Apple material belongs in public environment `apple-release-signing`, and `SIGNPATH_API_TOKEN` belongs in public environment `windows-release-signing`. No SignPath private key is stored in either repository.
### External Dependencies (Downloaded at Build Time)
diff --git a/ci-cd/DEVELOPMENT_WORKFLOW.md b/ci-cd/DEVELOPMENT_WORKFLOW.md
index 369d22da..555fb93f 100644
--- a/ci-cd/DEVELOPMENT_WORKFLOW.md
+++ b/ci-cd/DEVELOPMENT_WORKFLOW.md
@@ -45,25 +45,28 @@ WSJTX/wsjtx-internal (private) WSJTX/wsjtx (public)
- **wsjtx-internal** is where all development happens. It's private so the team can work without external pressure during development cycles. This is the repo team members push to, open PRs against, and file issues in.
-- **wsjtx** is the public face of the project. It receives an exact release commit and tag only after a release manager approves promotion of a successful internal candidate. External contributors fork this repo.
+- **wsjtx** is the public face of the project. It receives the exact commit of each promoted beta, RC, and GA release on `release/X.Y`, with its immutable version tag. Newest-line GA commits also advance public `master`. External contributors fork this repo.
### How they stay in sync
The repos are **not** GitHub forks of each other — they are independent Git repos that share history. Synchronization happens in one direction only:
```
-wsjtx-internal ──→ wsjtx
- (private) tag (public)
- sync
+wsjtx-internal ──→ wsjtx
+ (private) (public)
+ release/X.Y + immutable v*
```
-For a version such as `3.2.0-rc1`:
-1. `build/v3.2.0-rc1` identifies an immutable internal candidate and builds validation artifacts
-2. A release manager inspects that run and manually promotes its exact commit as public tag `v3.2.0-rc1`
-3. The public repository builds and signs the distribution artifacts from that tag
-4. A final `public-release` approval publishes the GitHub prerelease or release
+For a version such as `3.3.0-rc1`:
+1. Prepare Release Candidate creates the immutable internal candidate tag `build/v3.3.0-rc1` and builds validation artifacts from it
+2. A release manager inspects that run and manually promotes its exact commit as public branch `release/3.3` and tag `v3.3.0-rc1`
+3. The public repository builds the distribution artifacts from that tag
+4. The public workflow verifies and summarizes the exact bundle
+5. A member of the `release-approvers` team approves the final `publish` job, which creates the GitHub prerelease or release
-An RC promotion publishes only its tag, so public `master` remains the latest GA source. GA promotion also advances public `master` to the same commit. This keeps public source, signed binaries, and the release page bound to one reviewed revision.
+A beta takes the same steps, except that the [beta scheduler](DEPLOYMENT_PLAYBOOK.md#10-scheduled-beta-releases) creates the candidate and promotes it, and the `publish` job runs without approval.
+
+See the [public branch policy](DEPLOYMENT_PLAYBOOK.md#public-branch-history-and-ga-line-policy) for ancestry requirements and how GA releases update `master` and GitHub Latest.
The public repo never pushes back to internal. Changes from external contributors are manually cherry-picked or merged by a team member (see [Section 4](#4-contributing-from-outside-the-team)).
@@ -78,13 +81,13 @@ Team members have **write access** to both repos. They can:
- Open and merge pull requests
- Create and manage issues
- Trigger workflow runs manually
-- Create tags (which trigger releases)
+- Run Prepare Release Candidate and Promote Release Source, which create every release tag; never push a `build/v*` or `v*` tag by hand
### Org Admins
Org admins can additionally:
- Manage org settings (Actions permissions, member roles)
-- Configure repository secrets
+- Configure environments, secrets, and variables
- Add or remove team members
- Set branch protection rules
@@ -95,7 +98,7 @@ External contributors have **read access** to the public repo (wsjtx). They can:
- Open pull requests from their fork to wsjtx
- File issues on wsjtx
-They **cannot** directly access wsjtx-internal, push branches to either org repo, or trigger protected release operations. Candidate CI runs internally; promoted RC and GA source tags and their distribution builds are public. External PRs are triaged by a team member, who brings accepted changes into wsjtx-internal where the pipeline builds and tests them.
+They **cannot** directly access wsjtx-internal, push branches to either org repo, or trigger protected release operations. Candidate CI runs internally; promoted beta, RC, and GA source tags and their distribution builds are public. External PRs are triaged by a team member, who brings accepted changes into wsjtx-internal where the pipeline builds and tests them.
### Access Summary
@@ -107,7 +110,7 @@ They **cannot** directly access wsjtx-internal, push branches to either org repo
| Push to wsjtx (public) | Yes | Yes | No (fork + PR) |
| Open PRs on wsjtx-internal | Yes | Yes | No |
| Open PRs on wsjtx (public) | Yes | Yes | Yes (from fork) |
-| Create tags/releases | Yes | Yes | No |
+| Create release tags (through the release workflows) | Yes | Yes | No |
| Manage secrets/settings | No | Yes | No |
---
@@ -182,12 +185,12 @@ Or use the GitHub web UI: go to the repo, click "Compare & pull request" on the
When the PR is opened (and on every subsequent push), the default CI path runs the Linux x86_64 build. Apply the `full-ci` label or dispatch CI manually when all supported targets should run:
-- **macOS ARM64** — builds; Developer ID signing and notarization require credentials
-- **macOS Intel x86_64** — builds; Developer ID signing and notarization require credentials
+- **macOS ARM64** — builds; the app is ad-hoc signed and the package is unsigned
+- **macOS Intel x86_64** — builds; the app is ad-hoc signed and the package is unsigned
- **Linux x86_64** — builds
- **Linux aarch64** — builds (ARM Linux, via `ubuntu-24.04-arm`)
-- **Linux armhf** — builds in the armhf container
-- **Windows x86_64** — builds and signs via MSYS2/MinGW
+- **Linux armhf** — cross-builds on `ubuntu-24.04`, then tests and packages in the armhf container on `ubuntu-24.04-arm`
+- **Windows x86_64** — builds via MSYS2/MinGW; the installer is unsigned
Green checks cover the jobs selected for that run. A red X means something broke — click the check to see which platform failed and view the logs. The private release candidate always runs the complete six-target matrix before source can be promoted.
@@ -311,12 +314,12 @@ CI/CD serves two purposes: **quality gates** (does it compile?) and **release au
**What CI checks:**
- Default PR and branch CI compiles and tests Linux x86_64; `full-ci`, manual CI, and release candidates provide broader coverage
-- On macOS, ordinary CI uses ad-hoc signing for validation. Public RC and GA packages use hosted Developer ID signing when it is enabled; otherwise a release manager replaces the validated packages with manually signed packages.
-- On Windows, public RC and GA installers are Authenticode-signed through SignPath. Ordinary CI may use a per-run ephemeral self-signed certificate.
+- CI, candidate, and beta installers and packages are unsigned; on macOS the app inside carries an ad-hoc signature for validation ([beta signing](DEPLOYMENT_PLAYBOOK.md#beta-signing)).
+- Only a GA installer is signed, through SignPath; a GA release's macOS packages are Developer ID-signed, and so are an RC's while hosted Developer ID signing is enabled ([procedures by channel](DEPLOYMENT_PLAYBOOK.md#procedures-by-channel)).
- Build artifacts are uploaded for inspection
- **Tests pass on every platform** (Qt helpers, decoder smoke tests, pFUnit Fortran unit tests — registered via ctest). See [Test Failure Policy](#test-failure-policy) below.
-**What CI does NOT check (yet):**
+**What CI does not check:**
- Code style or linting
- Documentation generation
@@ -328,7 +331,7 @@ CI/CD serves two purposes: **quality gates** (does it compile?) and **release au
### Release: Build and Publish
-The release pipeline is separate from CI. An internal candidate tag builds without publishing; manual source promotion starts public distribution builds, and a second approval publishes them. See [Section 6](#6-the-release-process).
+The release pipeline is separate from CI. An internal candidate tag builds without publishing. Source promotion starts the public distribution builds and their automatic publication checks. See [Section 6](#6-the-release-process).
### Where CI runs
@@ -336,14 +339,15 @@ CI runs on GitHub-hosted runners:
| Platform | Runner | Architecture | Cost |
|----------|--------|-------------|------|
-| macOS ARM64 | `macos-15` | ARM64 (Apple Silicon) | 10x multiplier on Actions minutes |
-| macOS Intel | `macos-15-intel` | x86_64 | 10x multiplier on Actions minutes |
-| Linux | `ubuntu-24.04` | x86_64 | 1x (baseline) |
-| Linux aarch64 | `ubuntu-24.04-arm` | aarch64 | 1x (baseline) |
-| Linux armhf | `ubuntu-24.04` + container | armhf | 1x (baseline) |
-| Windows | `windows-latest` + MSYS2 | x86_64 | 2x multiplier |
+| macOS ARM64 | `macos-15` | ARM64 (Apple Silicon) | $0.062 per minute |
+| macOS Intel x86_64 | `macos-15-intel` | x86_64 | $0.062 per minute |
+| Linux x86_64 | `ubuntu-24.04` | x86_64 | $0.006 per minute |
+| Linux aarch64 | `ubuntu-24.04-arm` | aarch64 | $0.005 per minute |
+| Linux armhf | `ubuntu-24.04` (cross-build), then `ubuntu-24.04-arm` + container (tests and packaging) | armhf | $0.006 per minute (cross-build), then $0.005 per minute |
+| Windows | `windows-latest` + MSYS2 | x86_64 | $0.010 per minute |
+| Orchestration (scheduler, tagging, promotion, gates) | `ubuntu-latest` | x86_64 | $0.006 per minute |
-**Free tier:** GitHub provides 2,000 free Actions minutes/month for private repos (with multipliers applied). macOS jobs dominate billed time because both use the 10x multiplier; Linux targets run at the baseline rate.
+**Included minutes:** The organization's GitHub Team plan includes 3,000 Actions minutes a month for private repositories. Usage draws on them at each runner's per-minute list price, and usage beyond them is billed at the same rates. Standard GitHub-hosted runners are free in public repositories.
**Caching:** Hamlib builds and MSYS2 packages are cached to reduce build times. First-run builds are slower; subsequent builds use the cache.
@@ -367,17 +371,34 @@ This is the simplest possible policy for v1. If a flaky test emerges, the team c
## 6. The Release Process
-Releases are tag-defined but approval-driven. The internal `build/v...` tag fixes the candidate revision; it does not publish source or binaries. A release manager separately approves copying that exact revision to the public `v...` tag, and the public release waits for one final approval after its publication artifacts are available for inspection.
+For an RC or GA, after candidate creation, two approvals remain. First, review the candidate and run Promote Release Source with `operation=promote`; this makes the exact source public. After builds and bundle checks finish, approve the final `publish` job in `public-release`. The same maintainer can do both. Weekly betas run the same pipeline with no human step.
+
+### Release channels
+
+Every build identifies its channel through `release-state.txt`:
+
+| Channel | Version | Built from | Published |
+|---------|---------|------------|-----------|
+| `DEVEL` | `X.Y.Z-devel` | `develop` and other development builds | Never |
+| `BETA` | `X.Y.Z-betaN` | `release/X.Y` before the freeze, with the newest green `develop` merged in weekly | Automatically, as an unsigned GitHub prerelease that never becomes Latest |
+| `RC` | `X.Y.Z-rcN` | `release/X.Y` after the freeze | After release-manager promotion and `release-approvers` approval, as an unsigned GitHub prerelease while hosted Developer ID signing is disabled |
+| `GA` | `X.Y.Z` | `release/X.Y` after the freeze | After release-manager promotion and `release-approvers` approval; signed; Latest only for the newest GA on the newest line |
+
+`DEVEL`, `BETA`, and `RC` builds of the WSJT-X GUI show a prerelease notice at every start and stop working at the end of the 90th day (UTC) after the built commit's date; `GA` builds never expire ([release state contract](DEPLOYMENT_PLAYBOOK.md#release-state-contract)).
+
+A line publishes betas from its start ([starting a release line](DEPLOYMENT_PLAYBOOK.md#starting-a-release-line)) until a commit on `release/X.Y` sets `RC 1`, which freezes it ([pause and freeze](DEPLOYMENT_PLAYBOOK.md#pause-and-freeze)). RCs and GA then follow the steps below. After the freeze, bump `develop` to `X.(Y+1).0` in a one-line PR, and publish `samples/contents_X.(Y+1).json` to `feat-web-pages` as the [sample catalog procedure](#3-promote-the-exact-source) describes.
+
+**Fixes land on `develop` first, in every phase.** The weekly beta carries them to the line; after the freeze, cherry-pick each fix from `develop` to `release/X.Y`. In the beta phase, push no fix to `release/X.Y`, not even a cherry-pick from `develop`. The scheduler stops the line on such a commit until that exact commit is reachable from `develop` ([state machine](DEPLOYMENT_PLAYBOOK.md#state-machine)). For an urgent fix, land it on `develop` and, once its push CI passes, dispatch Scheduled Beta Cut, which cuts the next beta at once when the current one is published.
### Overview
```
-release/3.2 metadata commit
- └─→ internal build/v3.2.0-rc1 candidate and validation artifacts
+release/3.3 metadata commit
+ └─→ internal build/v3.3.0-rc1 candidate and validation artifacts
└─→ manual source promotion
- └─→ public v3.2.0-rc1 tag
- └─→ public all-platform builds and signing
- └─→ public-release approval
+ └─→ public v3.3.0-rc1 tag
+ └─→ public all-platform builds and policy checks
+ └─→ bundle summary and final publication approval
└─→ public GitHub prerelease
```
@@ -385,79 +406,87 @@ release/3.2 metadata commit
#### 1. Prepare tracked release metadata
-Cut `release/3.2` from a green `develop`, then make a small metadata commit before every RC or GA candidate. `release-state.txt` records the numeric version, `DEVEL`, `RC` plus its positive RC number, or `GA`; its export-substituted revision also preserves the source SHA outside Git. This makes a build from GitHub's automatic source archive identify itself correctly even though that archive has no `.git` directory.
+Make a small metadata commit on `release/3.3` before every RC or GA candidate; a line in its beta phase gets its metadata from its [line-start commit](DEPLOYMENT_PLAYBOOK.md#starting-a-release-line) and the beta scheduler's merge commits instead. `release-state.txt` holds the numeric `version`, the `channel` (`DEVEL`, `BETA`, `RC`, or `GA`), and the `prerelease` number that `BETA` and `RC` require. Set `windows_signing=unsigned` in every RC metadata commit and omit it from the GA metadata commit, which selects SignPath ([release state contract](DEPLOYMENT_PLAYBOOK.md#release-state-contract)). The export-substituted `revision` preserves the source SHA outside Git, so a build from GitHub's automatic source archive identifies itself correctly even though that archive has no `.git` directory.
Do not put an RC or GA tag on a `DEVEL` commit. The helper rejects disagreement among the requested version, tag, and tracked release state; CMake derives its version from that same state.
#### 2. Create the internal candidate
-Run **Prepare Release Candidate** from `release/3.2` at the intended SHA. First use `operation=validate`, then `operation=create`, supplying the version (`3.2.0-rc1`, for example) and the full SHA. Creation makes immutable tag `build/v3.2.0-rc1`; the same workflow run calls `release.yml` to build all internal validation artifacts but publishes nothing.
+Prepare and commit the [Linux image selection](DEPLOYMENT_PLAYBOOK.md#prepared-linux-release-images) first. A line frozen from its beta phase carries the scheduler's selection, which the freeze commit's review covers ([pause and freeze](DEPLOYMENT_PLAYBOOK.md#pause-and-freeze)); prepare a new one only when Prepare Release Candidate reports a stale recipe. Candidate and public builds use those same dependency digests. Native builds report [cache readiness](DEPLOYMENT_PLAYBOOK.md#cache-readiness).
+
+Run Prepare Release Candidate from `release/3.3` at the intended SHA. Validate the version and full SHA, then use `operation=create`. This creates `build/v3.3.0-rc1` and the internal validation artifacts; it does not publish them.
Inspect the candidate run and installable validation artifacts. Record its run ID for promotion.
#### 3. Promote the exact source
-From the same release branch and SHA, run **Promote Release Source** with the same version, the candidate run ID, and `operation=validate`. After reviewing its summary, rerun with `operation=promote`. The workflow verifies the immutable tag, commit, release metadata, current release-branch tip, candidate run, and artifacts before creating public tag `v3.2.0-rc1` at the same commit.
+From the same branch and SHA, run Promote Release Source with the version and candidate run ID. Validate first and review the summary, then rerun with `operation=promote`. The workflow checks the candidate, creates its immutable public tag, and creates or fast-forwards the public release branch at that exact commit.
-The public tag exposes the corresponding source required for public distribution and triggers fresh public distribution builds. RC promotion does not move public `master`; GA promotion advances `master` to the same commit with a guarded update.
+Betas and RCs leave `master` unchanged. A newest-line GA also advances `master`; an older-line GA leaves both `master` and GitHub Latest unchanged. See the [playbook](DEPLOYMENT_PLAYBOOK.md#public-branch-history-and-ga-line-policy) for line selection, first branch creation, ancestry checks, and handling divergent history.
-#### 4. Review builds and approve publication
+The sample downloader reads `samples/contents_X.Y.json` and the files it lists from GitHub Pages (`https://wsjtx.github.io/wsjtx/`), which serves the public `feat-web-pages` branch. Binaries released before 3.3 read the same paths from SourceForge; leave that copy in place. Each X.Y line needs its own catalog on Pages, published when `develop` takes that version. To publish a catalog, or after adding a sample, configure a build of that version's source with `WSJT_WEB_PAGES_DIR` set to a `feat-web-pages` checkout, build the `stage-samples` target, commit the staged `samples/` changes to `feat-web-pages` for review, and verify that the published catalog lists every file. The WSJT-X Help menu's Release Notes and Online User Guide are served from the public `feat-web-pages` branch; publish `Release_Notes.txt` and a guide generated from the tagged source there. Also update `https://wsjt.sourceforge.io/Release_Notes.txt`; MAP65's Help > Release Notes and already released WSJT-X binaries open that copy. These remote files are separate from the GitHub Release assets and are not updated by the public release workflow.
-The public workflow builds all supported targets. Both RC and GA Windows installers use SignPath production signing. When hosted Apple signing is enabled, both RC and GA macOS installers are Developer ID-signed, notarized, stapled, and verified before publication.
+#### 4. Verify publication
-With `MACOS_DISTRIBUTION_SIGNING_ENABLED=false`, the workflow publishes validated unsigned macOS packages under their final release filenames. Those two packages are marked as manually replaceable, excluded from `SHA256SUMS` and the manifest's immutable asset list, and preserved rather than compared on workflow reruns. A release manager must replace both with Developer ID-signed, notarized, and stapled packages. Enable the variable after `apple-release-signing` is configured to restore fully automated macOS signing and immutable package hashes.
+After public builds finish, review the bundle summary for its tag, source SHA, run link, signing modes, assets, and checksums. Then approve the final `publish` job in `public-release`; the same maintainer can approve their own run. RCs publish as prereleases.
-Download and review `release-bundle-<version>`, including its checksums, manifest, and signing reports. Approve the waiting `public-release` environment only when they all correspond to the public tag and expected SHA. This final approval publishes an RC as a GitHub prerelease or GA as the latest release.
+The playbook describes the required [reviewer settings](DEPLOYMENT_PLAYBOOK.md#public-final-publication-approval), [bundle checks and signing modes](DEPLOYMENT_PLAYBOOK.md#step-4-review-and-approve-final-publication), and manual replacement of a GA's macOS packages when hosted signing is disabled.
#### 5. Recover without moving tags
-Rerun a failed workflow against the existing immutable tag after fixing transient credentials or service configuration. If source or tracked release metadata must change, commit the fix and cut the next RC. Never delete, recreate, or force-move a candidate or public release tag; immutable tags keep reviews, source, signatures, and downloaded artifacts attributable to one commit.
+Rerun a failed workflow against the existing immutable tag after fixing transient credentials or service configuration. If source or tracked release metadata must change, commit the fix (source fixes land on `develop` first) and cut the next RC. Never delete, recreate, or force-move a candidate or public release tag; immutable tags keep reviews, source, signatures, and downloaded artifacts attributable to one commit.
### Release candidates
-Before a final release, cut one or more RCs and let the team exercise the same public, signed distribution path. An RC uses a SemVer suffix such as `3.2.0-rc1` and is published as a GitHub prerelease, so it does not replace the latest GA release.
+Before a final release, cut one or more RCs and let the team exercise the same public distribution path. An RC uses a SemVer suffix such as `3.3.0-rc1` and is published as a GitHub prerelease, so it does not replace the latest GA release.
#### When to cut an RC
-Cut an RC whenever a release contains more than a trivial change — any feature work, non-obvious bug fixes, or changes to the build, signing, or notarization path. A pure doc or CI-config release does not need an RC.
+Cut an RC whenever a release contains more than a trivial change — any feature work, non-obvious bug fixes, or changes to the build or packaging path. An RC's Windows installer is unsigned, and its macOS packages are unsigned while hosted Developer ID signing is disabled, so an RC does not exercise those signing paths. A pure doc or CI-config release does not need an RC.
#### Tagging an RC
-RCs and GA are prepared on the same `release/X.Y` branch, never directly on `develop`. Make and merge the matching `RC n` metadata commit before asking Prepare Release Candidate to create the candidate tag.
+RCs and GA are prepared on the same `release/X.Y` branch, never directly on `develop`. Make and merge the matching `RC N` metadata commit before asking Prepare Release Candidate to create the candidate tag.
#### Testing an RC
Before promoting an RC to GA, confirm:
- All six target jobs in the public release workflow ran green
-- The macOS `.pkg` passes the signing, staple, Gatekeeper, entitlement, and installed-runtime checks in the Deployment Playbook
-- At least one volunteer on each supported platform (macOS ARM64, macOS Intel x86_64, Linux x86_64, Linux aarch64, Windows x86_64) has installed the RC and exercised the workflow they care about
+- Both macOS `.pkg` assets pass the [artifact checks](DEPLOYMENT_PLAYBOOK.md#step-5-verify-the-artifacts) in the Deployment Playbook; an unsigned RC package skips the package-signature, staple, and Gatekeeper checks
+- At least one volunteer on each supported platform (macOS ARM64, macOS Intel x86_64, Linux x86_64, Linux aarch64, Linux armhf, Windows x86_64) has installed the RC and exercised the workflow they care about; [beta signing](DEPLOYMENT_PLAYBOOK.md#beta-signing) says how to open the unsigned packages
- No critical issue has been filed against the RC for a reasonable soak period (typically 48 hours after the platform volunteers confirm)
-If an RC fails testing, push a fix to the release branch, update the metadata to the next RC number, and create `-rc2`, `-rc3`, etc. Each RC remains an independent public prerelease for reference.
+If an RC fails testing, land the fix on `develop`, cherry-pick it to the release branch, update the metadata to the next RC number, and create `-rc2`, `-rc3`, etc. Each RC remains an independent public prerelease for reference.
#### Promoting an RC to GA
-Change the tracked state from `RC n` to `GA` in a metadata-only commit, wait for CI, and create a new `3.2.0` candidate through the same validate/create/promote/approve sequence. Even when application source is unchanged, the GA commit is intentionally distinct so ordinary builds from its GitHub source archive report GA rather than RC.
+Change the tracked state from `RC N` to `GA` in a metadata-only commit (`channel=GA`, an empty `prerelease=`, and no `windows_signing` line), wait for CI, and create a new `3.3.0` candidate through the same validate/create/promote sequence. Even when application source is unchanged, the GA commit is intentionally distinct so ordinary builds from its GitHub source archive report GA rather than RC.
### What the release produces
| Artifact | Platform | Signed | Notes |
|----------|----------|--------|-------|
-| `wsjtx-3.2.0-rc1-arm64-macOS.pkg` | macOS ARM64 | After hosted or manual signing | Developer ID signed, notarized, and stapled; verify per the Deployment Playbook |
-| `wsjtx-3.2.0-rc1-x86_64-macOS.pkg` | macOS Intel x86_64 | After hosted or manual signing | Developer ID signed, notarized, and stapled; verify per the Deployment Playbook |
-| `wsjtx-3.2.0-rc1-linux-x86_64.AppImage` | Linux x86_64 | No | Published with matching `.deb` and `.rpm` packages |
-| `wsjtx-3.2.0-rc1-linux-aarch64.AppImage` | Linux aarch64 | No | Published with matching `.deb` and `.rpm` packages |
-| `wsjtx-3.2.0-rc1-linux-armhf.AppImage` | Linux armhf | No | Published with matching `.deb` and `.rpm` packages |
-| `wsjtx-3.2.0-rc1-win64.exe` | Windows x86_64 | Yes | SignPath Foundation Authenticode for RC and GA |
-| `wsjtx-3.2.0-rc1-src.tar.gz` | Source | N/A | Project-created archive of the public tagged commit |
+| `wsjtx-<ver>-arm64-macOS.pkg` | macOS ARM64 | GA: yes. Beta: no. RC: no while hosted Developer ID signing is disabled | GA: Developer ID signed, notarized, and stapled; verify per the Deployment Playbook. Beta and unsigned RC: remove the quarantine attribute before opening (`xattr -d com.apple.quarantine`) |
+| `wsjtx-<ver>-x86_64-macOS.pkg` | macOS Intel x86_64 | GA: yes. Beta: no. RC: no while hosted Developer ID signing is disabled | GA: Developer ID signed, notarized, and stapled; verify per the Deployment Playbook. Beta and unsigned RC: remove the quarantine attribute before opening (`xattr -d com.apple.quarantine`) |
+| `wsjtx-<ver>-linux-x86_64.AppImage` | Linux x86_64 | No | Published with matching `.deb` and `.rpm` packages |
+| `wsjtx-<ver>-linux-aarch64.AppImage` | Linux aarch64 | No | Published with matching `.deb` and `.rpm` packages |
+| `wsjtx-<ver>-linux-armhf.AppImage` | Linux armhf | No | Published with matching `.deb` and `.rpm` packages |
+| `wsjtx-<ver>-win64.exe` | Windows x86_64 | GA: yes. Beta and RC: no | GA: SignPath Foundation Authenticode |
+| `wsjtx-<ver>-arm64-macOS-<tarball>.tar.gz` | macOS ARM64 | No (ad-hoc) | Programs with their dylibs; remove the quarantine attribute before extracting (`xattr -d com.apple.quarantine`) |
+| `wsjtx-<ver>-x86_64-macOS-<tarball>.tar.gz` | macOS Intel x86_64 | No (ad-hoc) | Programs with their dylibs; remove the quarantine attribute before extracting (`xattr -d com.apple.quarantine`) |
+| `wsjtx-<ver>-linux-<arch>-<tarball>.tar.gz` | Linux x86_64, aarch64, armhf | No | Programs with the libraries they load; `README.txt` names the oldest glibc and the host libraries they need |
+| `wsjtx-<ver>-windows-x86_64-<tarball>.tar.gz` | Windows x86_64 | No | Programs with the DLLs they import |
+| `wsjtx-<ver>-src.tar.gz` | Source | N/A | Project-created archive of the public tagged commit |
| `SHA256SUMS` and release manifest | CI-managed assets | N/A | Bind immutable uploaded bytes to their public tag, commit, and build provenance |
-GitHub also adds automatic **Source code (zip)** and **Source code (tar.gz)** links from the public tag. They represent the same tagged source but are generated and compressed by GitHub, so their archive hashes need not equal the project-created `.tar.gz`. `SHA256SUMS` covers immutable assets uploaded by the project. In manual macOS signing mode it excludes the two replaceable `.pkg` files, which the manifest identifies separately. A checksum detects changed bytes but is not a substitute for platform signatures or tag-to-commit checks.
+`<ver>` is the release's suffixed version: `X.Y.Z-betaN`, `X.Y.Z-rcN`, or `X.Y.Z`, and `<tarball>` is each release tarball `CMake/release-tarballs.txt` names. Betas, RCs, and GA releases publish the same set of assets.
+
+GitHub also adds automatic **Source code (zip)** and **Source code (tar.gz)** links from the public tag. They represent the same tagged source but are generated and compressed by GitHub, so their archive hashes need not equal the project-created `.tar.gz`. `SHA256SUMS` covers immutable assets uploaded by the project. For an RC or GA in manual macOS signing mode it excludes the two replaceable `.pkg` files, which the manifest identifies separately. A beta's macOS packages are not replaceable, so `SHA256SUMS` covers them. A checksum detects changed bytes but is not a substitute for platform signatures or tag-to-commit checks.
### Who can trigger a release?
-Team members can run candidate validation. Creating the candidate, promoting its source, and approving the `public-release` environment are explicit release-manager actions; repository protection and environment access determine who can perform each one.
+Team members can run candidate validation. Creating the candidate and promoting its source are explicit release-manager actions for an RC or GA; repository permissions determine who can perform them. For a beta, the beta scheduler creates the candidate and promotes it.
---
@@ -470,7 +499,7 @@ Team members can run candidate validation. Creating the candidate, promoting its
| `feat-*` | New feature | `develop` | `develop` via PR | Until merged |
| `fix-*` | Bug fix | `develop` | `develop` via PR | Until merged |
| `<issue#>-*` | Issue-linked work | `develop` | `develop` via PR | Until merged |
-| `release/X.Y` | RC and GA stabilization | `develop` | Public release tags; `master` only at GA | Maintained for patch releases |
+| `release/X.Y` | Weekly betas, then RCs and GA after the freeze | `develop` | Promoted to public `release/X.Y` with its tags; `master` only at newest-line GA; each GA commit (`build/vX.Y.Z`) merged back into `develop` | Maintained for patch releases, which skip the beta phase |
| `develop` | Main development trunk | — | — | Permanent |
| `master` | Public releases (on wsjtx) | — | — | Permanent |
@@ -604,7 +633,7 @@ gh pr create --base develop --title "fix: handle /P suffix in FT8 decoder" \
Tested with the WA6BEV.wav reference file on macOS ARM64."
```
-CI runs. All six targets build green.
+CI runs the default Linux x86_64 build and tests, and they pass.
### 5. Review and merge
@@ -612,66 +641,73 @@ Another team member reviews the Fortran change, confirms the logic, and approves
### 6. Eventually released
-When the team decides to release the next version, this fix is included automatically — it's already on `develop`. The tag triggers the release pipeline, and the fix reaches the public repo and the downloadable binaries.
+If a line is in its beta phase, the fix ships in the first weekly beta cut after a `develop` commit containing it passes push CI. With no line in its beta phase, it ships in the next line's betas. A frozen line gets the fix only once it is cherry-picked to that line's `release/X.Y`.
---
## 11. End-to-End Example: A New Release
-Here's the complete flow for releasing `3.2.0-rc1`.
+Here's the complete flow for releasing `3.3.0-rc1`.
### 1. Release decision
-The team cuts `release/3.2` from a green `develop`. Later `3.2.x` patches use that existing release branch so unrelated work on `develop` is not included.
+The team decides to freeze `release/3.3`, which a maintainer cut from a green `develop` to start its weekly betas ([starting a release line](DEPLOYMENT_PLAYBOOK.md#starting-a-release-line)). Later `3.3.x` patches use that existing release branch with `RC N` metadata commits and cherry-picked fixes, never a `BETA` state, so unrelated work on `develop` is not included.
### 2. Version preparation
-Update the numeric version and tracked release state, then commit them before creating any tag:
+Set the tracked release state to `RC 1` in the freeze commit, and merge it through a reviewed PR, which also reviews the line's `release-linux-images.json`, before creating any tag:
```bash
-git switch release/3.2
-git pull origin release/3.2
-# Set release-state.txt to version 3.2.0, channel RC, and rc 1.
-git commit -m "chore(release): prepare 3.2.0-rc1"
-git push origin release/3.2
+git fetch origin
+git switch -c freeze-3.3.0-rc1 origin/release/3.3
+# Set release-state.txt to version 3.3.0, channel RC, and prerelease 1.
+# Keep windows_signing=unsigned; only the GA metadata commit omits it.
+git add release-state.txt
+git commit -m "chore(release): prepare 3.3.0-rc1"
+git push -u origin freeze-3.3.0-rc1
+gh pr create --base release/3.3 --title "chore(release): prepare 3.3.0-rc1"
```
-Wait for CI to go green on this commit.
+After review, merge the PR and wait for CI on `release/3.3`. Then bump `develop` to `3.4.0` in a one-line PR, and publish `samples/contents_3.4.json` to `feat-web-pages` as the [sample catalog procedure](#3-promote-the-exact-source) describes.
### 3. Validate and create the candidate
-From `release/3.2` at the metadata commit, run **Prepare Release Candidate** twice with version `3.2.0-rc1` and the full SHA: first `operation=validate`, then `operation=create`. Do not create or move the tag locally. The helper creates immutable `build/v3.2.0-rc1` only after its checks pass.
+From the `release/3.3` tip, run **Prepare Release Candidate** twice with version `3.3.0-rc1` and the tip's full SHA: first `operation=validate`, then `operation=create`. Do not create or move the tag locally. The helper creates immutable `build/v3.3.0-rc1` only after its checks pass.
### 4. Automated pipeline runs
The Prepare Release Candidate run calls internal `release.yml` to build validation artifacts from the candidate tag, but does not publish a release or copy source. Inspect that run and retain its run ID.
```
- build/v3.2.0-rc1
+ build/v3.3.0-rc1
└─→ private validation builds
└─→ Promote Release Source validate, then promote
- └─→ public v3.2.0-rc1
+ └─→ public v3.3.0-rc1
└─→ public Linux, macOS, and Windows builds
- └─→ signing and provenance checks
- └─→ public-release approval
+ └─→ signing-mode and provenance checks
+ └─→ final `public-release` approval
└─→ public prerelease
```
-### 5. Promote, verify, and approve
+### 5. Promote and verify
```bash
# After running Promote Release Source with validate and then promote:
-gh api repos/WSJTX/wsjtx/git/ref/tags/v3.2.0-rc1 --jq .object.sha
+gh api repos/WSJTX/wsjtx/git/ref/heads/release/3.3 --jq .object.sha
+gh api repos/WSJTX/wsjtx/git/ref/tags/v3.3.0-rc1 --jq .object.sha
+
+# After the public workflow verifies artifacts and publishes:
+gh release view v3.3.0-rc1 --repo WSJTX/wsjtx --json isPrerelease,url
-# After reviewing the public signing reports and approving public-release:
-gh release view v3.2.0-rc1 --repo WSJTX/wsjtx
+# Check which release is Latest:
+gh release view --repo WSJTX/wsjtx --json tagName,url
```
### 6. Distribute
- Post the public GitHub Release link to the mailing list
-- Upload artifacts to SourceForge (if still used as distribution channel)
-- Update the website (wsjtx.github.io/wsjtx) if applicable
+- Publish `Release_Notes.txt` and the user guide generated from the tagged source on the public `feat-web-pages` branch, which GitHub Pages serves at `https://wsjtx.github.io/wsjtx/` (see [Promote the exact source](#3-promote-the-exact-source))
+- Update `https://wsjt.sourceforge.io/Release_Notes.txt` to match
### 7. External contributors sync
@@ -679,10 +715,10 @@ For an RC, external contributors can fetch the public tag while `master` remains
```bash
git fetch upstream
-git switch --detach v3.2.0-rc1
+git switch --detach v3.3.0-rc1
```
-After GA promotion, public `master` advances to the GA commit and normal fork synchronization resumes.
+After a newest-line GA promotion, public `master` advances to the GA commit and normal fork synchronization resumes. An older-line patch leaves it at the newer GA source; run `gh release view --repo WSJTX/wsjtx --json tagName,url` and confirm it still names the newer GA.
---
@@ -695,7 +731,7 @@ After GA promotion, public `master` advances to the GA commit and normal fork sy
| Start new work | `git checkout develop && git pull && git checkout -b feat-my-feature` |
| Submit my changes | `git push -u origin feat-my-feature` then `gh pr create --base develop` |
| Check CI status | Look at the PR's status checks, or `gh run list` |
-| Trigger a release | Commit matching metadata on `release/X.Y`; run Prepare Release Candidate validate/create, inspect the candidate, then run Promote Release Source validate/promote. See [§6](#6-the-release-process). |
+| Trigger an RC or GA release | Commit matching metadata on `release/X.Y`; run Prepare Release Candidate validate/create, inspect the candidate, then run Promote Release Source validate/promote. See [§6](#6-the-release-process). |
| See build logs | `gh run view <RUN_ID> --log` |
| Re-run a failed build | `gh run rerun <RUN_ID>` |
| Manually trigger CI | `gh workflow run ci.yml --ref develop` |
@@ -717,5 +753,6 @@ After GA promotion, public `master` advances to the GA commit and normal fork sy
| Internal repo | `https://github.com/WSJTX/wsjtx-internal` (team only) |
| Public repo | `https://github.com/WSJTX/wsjtx` |
| CI runs | `https://github.com/WSJTX/wsjtx-internal/actions` |
+| Public release builds | `https://github.com/WSJTX/wsjtx/actions` |
| Issues | `https://github.com/WSJTX/wsjtx-internal/issues` |
-| Release artifacts | `https://github.com/WSJTX/wsjtx-internal/releases` |
+| Releases | `https://github.com/WSJTX/wsjtx/releases` |