Releasing

Releases are driven by per-module version.yml files, via GitHub Actions. There is no manual tagging - you bump a version and push.

How it works

Each releasable component owns a version.yml (newest entry first):

releases:
  - version: 1.1.0
    notes:
      - what changed
  - version: 1.0.0
    notes:
      - initial release

The top entry's version:

the git short hash and a -dirty flag), e.g. APM v1.1.0-9d089aa8-dirty, and

tagged <component>/v<version> with that entry's notes as the body.

It is idempotent: if a release for the top version already exists (e.g. you only edited an older entry's notes), the job skips. Bump the number to cut a release.

Components

componentversion.ymltagasset(s)
apmmodules/apm/version.ymlapm/v*.smup
bootloadermodules/bootloader/version.ymlbootloader/v*.hex, .bin
acm (fpga)modules/acm/version.ymlacm/v*notes only (bitstream pending Gowin CI)
fw-toolstools/fw_update/version.ymltools/v*per-platform mkupdate-* / update-* (see below)

The bootloader release runs in the bootloader-release GitHub environment - add required reviewers (repo Settings > Environments) so a golden-image release needs manual approval. A check job gates it, so approval is only requested when the bootloader version actually changed.

The demo app is built and smoke-tested in ci.yml but not released.

Cut a release

  1. Edit the component's version.yml: add a new top entry with the new version + notes.
  2. Commit and push to main.
  3. The release appears under the repo's Releases page with its assets attached.

Host tools targets

mkupdate is portable; update uses Linux-only serial ioctls. The tools release builds a matrix and attaches:

assetmkupdateupdate
linux-x86_64yesyes
linux-aarch64yes (cross)yes (cross)
macos-arm64yesno (Linux serial)
windows-x86_64.exeyesno

Plus a SHA256SUMS file. Porting update to macOS/Windows means replacing the custom_baud.c termios2 serial layer.

Notes

version.yml changes.

minimum bootloader version in the entry when the format changes.

Gowin gw_sh toolchain, plus its own version.yml.

version/notes out of a version.yml.