CI runner¶
Publishing a GitHub release builds the signed SD card and attaches it. The signed card workflow
(.github/workflows/card-release.yml) does this on a self-hosted runner, because the QNX cross
toolchain image holds the proprietary QNX SDP and is not pushed to any registry.
What the workflow does¶
- Checks that the release tag equals
vplus theCargo.tomlversion. - Runs
scripts/build.shto cross-build the QNX binary inqnx65-armv7-toolchain:8.5-rust. - Rebuilds the signed header from the
SIGNED_HEADER_GZ_B64secret and runsscripts/bundle.sh --signed-header. - Checks that the card carries a
[Signature]block and the right version. - Uploads
mibpkg-sd-<version>.zipand its.sha256to the release.
The workflow runs on release: published and on manual dispatch with a tag. It never runs on
pull_request, so code from a fork cannot reach the runner or the secret.
The runner¶
The runner is an unprivileged, isolated guest that is kept off any shared host. It has Docker, Rust,
Node and the qnx65-armv7-toolchain:8.5-rust image, and runs the Actions runner as a non-root user
with the labels self-hosted, linux, x64, mibpkg-qnx.
Load a rebuilt toolchain image into it from the build machine:
The signed header secret¶
The header is a genuine signed metainfo2.txt from a vendor update, and it is never committed. GitHub limits a secret to
48 KB and the file is about 42 KB, so store it gzipped and base64-encoded:
gzip -9c metainfo2.txt | base64 | tr -d '\n' | gh secret set SIGNED_HEADER_GZ_B64 --repo complex256/mibpkg
Rebuild a card by hand¶
Run the workflow from the Actions tab with an existing tag, or: